Run rubocop on all files
This commit is contained in:
@@ -2,7 +2,6 @@ module Admin
|
||||
module Actions
|
||||
module Bookmarks
|
||||
class Archive < Action
|
||||
|
||||
include Deps["repos.bookmark_repo"]
|
||||
|
||||
def handle(req, res)
|
||||
@@ -13,4 +12,4 @@ module Admin
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@@ -2,19 +2,18 @@ module Admin
|
||||
module Actions
|
||||
module Bookmarks
|
||||
class Cache < Action
|
||||
|
||||
include Deps["commands.bookmarks.cache"]
|
||||
|
||||
def handle(req, res)
|
||||
bookmark_id = req.params[:id]
|
||||
|
||||
if cache.(bookmark_id: bookmark_id).success?
|
||||
res.body = "Success"
|
||||
res.body = if cache.call(bookmark_id: bookmark_id).success?
|
||||
"Success"
|
||||
else
|
||||
res.body = "Failed"
|
||||
"Failed"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@@ -4,7 +4,6 @@ module Admin
|
||||
module Actions
|
||||
module Bookmarks
|
||||
class Clean < Action
|
||||
|
||||
def handle(req, res)
|
||||
Que.connection = Adamantium::Container["persistence.db"]
|
||||
|
||||
@@ -19,4 +18,4 @@ module Admin
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@@ -2,7 +2,6 @@ module Admin
|
||||
module Actions
|
||||
module Bookmarks
|
||||
class Delete < Action
|
||||
|
||||
include Deps["repos.bookmark_repo", "repos.post_tag_repo"]
|
||||
|
||||
def handle(req, res)
|
||||
@@ -14,4 +13,4 @@ module Admin
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@@ -2,7 +2,6 @@ module Admin
|
||||
module Actions
|
||||
module Bookmarks
|
||||
class Index < Action
|
||||
|
||||
include Deps["views.bookmarks.index"]
|
||||
|
||||
def handle(req, res)
|
||||
@@ -11,4 +10,4 @@ module Admin
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user