Class: Octodmin::Controllers::Posts::Manage
- Inherits:
-
Object
- Object
- Octodmin::Controllers::Posts::Manage
show all
- Defined in:
- app/controllers/posts/manage.rb
Instance Method Summary
collapse
Instance Method Details
#call(params) ⇒ Object
3
4
5
6
7
|
# File 'app/controllers/posts/manage.rb', line 3
def call(params)
self.format = :json
@post = Octodmin::Post.find(params[:id])
halt 400, JSON.dump(errors: ["Could not find post"]) unless @post
end
|