Class: Decidim::Admin::OrganizationHomepageController
- Inherits:
-
ApplicationController
- Object
- DecidimController
- ApplicationController
- Decidim::Admin::OrganizationHomepageController
- Defined in:
- app/controllers/decidim/admin/organization_homepage_controller.rb
Overview
Controller that allows managing the organization homepage
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
#edit ⇒ Object
11 12 13 |
# File 'app/controllers/decidim/admin/organization_homepage_controller.rb', line 11 def edit :update, :organization, organization: current_organization end |
#update ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 |
# File 'app/controllers/decidim/admin/organization_homepage_controller.rb', line 15 def update :update, :organization, organization: current_organization ReorderContentBlocks.call(current_organization, :homepage, params[:manifests]) do on(:ok) do head :ok end on(:invalid) do head :bad_request end end end |