Initial commit
This commit is contained in:
12
app/commands/posts/create_bookmark.rb
Normal file
12
app/commands/posts/create_bookmark.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
module Adamantium
|
||||
module Commands
|
||||
module Posts
|
||||
class CreateBookmark < Command
|
||||
include Deps["repos.post_repo"]
|
||||
def call(bookmark)
|
||||
post_repo.create(bookmark)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user