Class: PostAttachmentsController
- Inherits:
-
AdminController
- Object
- AdminController
- PostAttachmentsController
- Defined in:
- app/controllers/post_attachments_controller.rb
Overview
Controller for deleting post attachments
Instance Method Summary collapse
-
#destroy ⇒ Object
delete /post_attachments/:id.
Instance Method Details
#destroy ⇒ Object
delete /post_attachments/:id
9 10 11 12 13 |
# File 'app/controllers/post_attachments_controller.rb', line 9 def destroy @entity.destroy redirect_to(admin_post_path(id: @entity.post_id)) end |