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