Class: Decidim::Budgets::Admin::AttachmentsController
Overview
Controller that allows managing all the attachments for a participatory process.
Instance Method Summary
collapse
#projects
#current_feature, #current_participatory_process, #parent_path
#current_ability_klass, #user_not_authorized_path
Instance Method Details
#after_destroy_path ⇒ Object
12
13
14
|
# File 'decidim-budgets/app/controllers/decidim/budgets/admin/attachments_controller.rb', line 12
def after_destroy_path
projects_path
end
|
#attached_to ⇒ Object
16
17
18
|
# File 'decidim-budgets/app/controllers/decidim/budgets/admin/attachments_controller.rb', line 16
def attached_to
project
end
|
#authorization_object ⇒ Object
24
25
26
|
# File 'decidim-budgets/app/controllers/decidim/budgets/admin/attachments_controller.rb', line 24
def authorization_object
project.feature
end
|
#project ⇒ Object
20
21
22
|
# File 'decidim-budgets/app/controllers/decidim/budgets/admin/attachments_controller.rb', line 20
def project
@project ||= projects.find(params[:project_id])
end
|