Class: Decidim::Admin::ExportsController
- Inherits:
-
ApplicationController
- Object
- DecidimController
- ApplicationController
- Decidim::Admin::ExportsController
- Includes:
- ComponentPathHelper
- Defined in:
- app/controllers/decidim/admin/exports_controller.rb
Overview
This controller allows admins to manage proposals in a participatory process.
Instance Method Summary collapse
Methods inherited from ApplicationController
#permission_class_chain, #permission_scope, #user_has_no_permission_path, #user_not_authorized_path
Instance Method Details
#create ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'app/controllers/decidim/admin/exports_controller.rb', line 9 def create :export, :component_data, component: component name = params[:id] Decidim.traceability.perform_action!("export_component", component, current_user, { name: name, format: params[:format] || default_format }) do ExportJob.perform_later(current_user, component, name, params[:format] || default_format, params[:resource_id].presence) end flash[:notice] = t("decidim.admin.exports.notice") redirect_back(fallback_location: manage_component_path(component)) end |