From ec2b4fe7ff3d6b03e0c914018740e934a74b4325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Mon, 24 Sep 2018 19:56:00 +0200 Subject: [PATCH] Use %w[] instead of %w{} As agreed when discussing our rubocop rules. --- app/controllers/admin/legislation/proposals_controller.rb | 2 +- app/controllers/legislation/processes_controller.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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