Use %w[] instead of %w{}

As agreed when discussing our rubocop rules.
This commit is contained in:
Javi Martín
2018-09-24 19:56:00 +02:00
parent 81871a56f8
commit ec2b4fe7ff
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
class Admin::Legislation::ProposalsController < Admin::Legislation::BaseController 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 :process, class: "Legislation::Process"
load_and_authorize_resource :proposal, class: "Legislation::Proposal", through: :process load_and_authorize_resource :proposal, class: "Legislation::Proposal", through: :process

View File

@@ -1,6 +1,6 @@
class Legislation::ProcessesController < Legislation::BaseController class Legislation::ProcessesController < Legislation::BaseController
has_filters %w{open next past}, only: :index has_filters %w[open next past], only: :index
has_filters %w{all selected}, only: :proposals has_filters %w[all selected], only: :proposals
load_and_authorize_resource load_and_authorize_resource