Files
adamantium/app/commands/posts/update.rb
2023-01-27 22:55:09 +11:00

14 lines
245 B
Ruby

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