14 lines
245 B
Ruby
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
|