diff --git a/app/controllers/admin/legislation/proposals_controller.rb b/app/controllers/admin/legislation/proposals_controller.rb index 05313ef7b..dd92d1492 100644 --- a/app/controllers/admin/legislation/proposals_controller.rb +++ b/app/controllers/admin/legislation/proposals_controller.rb @@ -1,6 +1,6 @@ class Admin::Legislation::ProposalsController < Admin::Legislation::BaseController - has_orders %w{id title supports}, only: :index + has_orders %w[id title supports], only: :index load_and_authorize_resource :process, class: "Legislation::Process" load_and_authorize_resource :proposal, class: "Legislation::Proposal", through: :process diff --git a/app/controllers/legislation/processes_controller.rb b/app/controllers/legislation/processes_controller.rb index 970e44a75..83976db8c 100644 --- a/app/controllers/legislation/processes_controller.rb +++ b/app/controllers/legislation/processes_controller.rb @@ -1,6 +1,6 @@ class Legislation::ProcessesController < Legislation::BaseController - has_filters %w{open next past}, only: :index - has_filters %w{all selected}, only: :proposals + has_filters %w[open next past], only: :index + has_filters %w[all selected], only: :proposals load_and_authorize_resource