Run rubocop on all files
This commit is contained in:
@@ -2,7 +2,6 @@ module Admin
|
||||
module Views
|
||||
module AutoTagging
|
||||
class Index < Admin::View
|
||||
|
||||
include Deps["repos.auto_tagging_repo"]
|
||||
|
||||
expose :auto_taggings do
|
||||
@@ -11,4 +10,4 @@ module Admin
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@@ -2,7 +2,6 @@ module Admin
|
||||
module Views
|
||||
module AutoTagging
|
||||
class New < Admin::View
|
||||
|
||||
include Deps["repos.tag_repo"]
|
||||
|
||||
expose :tags do
|
||||
@@ -15,4 +14,4 @@ module Admin
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@@ -4,7 +4,6 @@ module Admin
|
||||
module Views
|
||||
module Bookmarks
|
||||
class Index < Admin::View
|
||||
|
||||
include Deps["repos.bookmark_repo"]
|
||||
|
||||
expose :published_bookmarks do |bookmarks|
|
||||
@@ -16,7 +15,7 @@ module Admin
|
||||
end
|
||||
|
||||
expose :bookmarks do
|
||||
bookmark_repo.list.partition{|p| p.published_at }
|
||||
bookmark_repo.list.partition { |p| p.published_at }
|
||||
end
|
||||
|
||||
expose :running_jobs do
|
||||
@@ -26,4 +25,4 @@ module Admin
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@@ -1,7 +1,6 @@
|
||||
module Admin
|
||||
module Views
|
||||
class Index < Admin::View
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@@ -2,7 +2,6 @@ module Admin
|
||||
module Views
|
||||
module MergeTags
|
||||
class Index < Admin::View
|
||||
|
||||
include Deps["repos.tag_repo"]
|
||||
|
||||
expose :tags do
|
||||
@@ -11,4 +10,4 @@ module Admin
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@@ -2,7 +2,6 @@ module Admin
|
||||
module Views
|
||||
module MergeTags
|
||||
class New < Admin::View
|
||||
|
||||
include Deps["repos.tag_repo"]
|
||||
|
||||
expose :tag do |id:|
|
||||
@@ -15,4 +14,4 @@ module Admin
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@@ -2,7 +2,6 @@ module Admin
|
||||
module Views
|
||||
module Photos
|
||||
class Index < Admin::View
|
||||
|
||||
MEDIA_DIR = "public/media/".freeze
|
||||
|
||||
expose :photos_buckets do
|
||||
@@ -13,4 +12,4 @@ module Admin
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@@ -2,7 +2,6 @@ module Admin
|
||||
module Views
|
||||
module Posts
|
||||
class Index < Admin::View
|
||||
|
||||
include Deps["repos.post_repo"]
|
||||
|
||||
expose :published_posts do |posts|
|
||||
@@ -14,9 +13,9 @@ module Admin
|
||||
end
|
||||
|
||||
expose :posts do
|
||||
post_repo.list.partition{|p| p.published_at }
|
||||
post_repo.list.partition { |p| p.published_at }
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@@ -2,7 +2,6 @@ module Admin
|
||||
module Views
|
||||
module Tags
|
||||
class Index < Admin::View
|
||||
|
||||
include Deps["repos.tag_repo"]
|
||||
|
||||
expose :tags do
|
||||
@@ -10,13 +9,13 @@ module Admin
|
||||
end
|
||||
|
||||
expose :unused_tags do |tags|
|
||||
tags.partition {|t| t.posts.count == 0}.first
|
||||
tags.partition { |t| t.posts.count == 0 }.first
|
||||
end
|
||||
|
||||
expose :used_tags do |tags|
|
||||
tags.partition {|t| t.posts.count == 0}.last
|
||||
tags.partition { |t| t.posts.count == 0 }.last
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@@ -2,7 +2,6 @@ module Admin
|
||||
module Views
|
||||
module Trips
|
||||
class Index < Admin::View
|
||||
|
||||
include Deps["repos.trip_repo"]
|
||||
|
||||
expose :trips do
|
||||
@@ -11,4 +10,4 @@ module Admin
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@@ -8,4 +8,4 @@ module Admin
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@@ -2,7 +2,6 @@ module Admin
|
||||
module Views
|
||||
module Trips
|
||||
class Show < Admin::View
|
||||
|
||||
include Deps["repos.trip_repo", "repos.post_repo"]
|
||||
|
||||
expose :trip do |id:|
|
||||
@@ -15,4 +14,4 @@ module Admin
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user