Initial commit
This commit is contained in:
13
app/commands/posts/update.rb
Normal file
13
app/commands/posts/update.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
module Adamantium
|
||||
module Commands
|
||||
module Posts
|
||||
class Update < Command
|
||||
def call(params)
|
||||
slug = URI(params[:url]).path.split("/").last
|
||||
|
||||
post_repo.update(slug, params)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user