Class: Decidim::Meetings::Admin::AttachmentsController
Overview
Controller that allows managing all the attachments for a participatory process.
Instance Method Summary
collapse
#meetings
#current_feature, #current_participatory_process, #parent_path
#current_ability_klass, #user_not_authorized_path
Instance Method Details
#after_destroy_path ⇒ Object
11
12
13
|
# File 'decidim-meetings/app/controllers/decidim/meetings/admin/attachments_controller.rb', line 11
def after_destroy_path
meetings_path
end
|
#attached_to ⇒ Object
15
16
17
|
# File 'decidim-meetings/app/controllers/decidim/meetings/admin/attachments_controller.rb', line 15
def attached_to
meeting
end
|
#authorization_object ⇒ Object
23
24
25
|
# File 'decidim-meetings/app/controllers/decidim/meetings/admin/attachments_controller.rb', line 23
def authorization_object
meeting.feature
end
|
#meeting ⇒ Object
19
20
21
|
# File 'decidim-meetings/app/controllers/decidim/meetings/admin/attachments_controller.rb', line 19
def meeting
@meeting ||= meetings.find(params[:meeting_id])
end
|