Use %w[] instead of %w{}
As agreed when discussing our rubocop rules.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user