Class: Decidim::Blogs::Admin::AttachmentsController
- Inherits:
-
ApplicationController
- Object
- Admin::Components::BaseController
- ApplicationController
- Decidim::Blogs::Admin::AttachmentsController
- Includes:
- Admin::Concerns::HasAttachments
- Defined in:
- app/controllers/decidim/blogs/admin/attachments_controller.rb
Overview
Controller that allows managing all the attachments for a participatory process.
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#after_destroy_path ⇒ Object
12 13 14 |
# File 'app/controllers/decidim/blogs/admin/attachments_controller.rb', line 12 def after_destroy_path end |
#attached_to ⇒ Object
16 17 18 |
# File 'app/controllers/decidim/blogs/admin/attachments_controller.rb', line 16 def attached_to post end |
#post ⇒ Object
20 21 22 |
# File 'app/controllers/decidim/blogs/admin/attachments_controller.rb', line 20 def post @post ||= posts.find(params[:post_id]) end |