Apply PercentLiteralDelimiters rubocop rule
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class Admin::ActivityController < Admin::BaseController
|
||||
has_filters %w{all on_users on_proposals on_debates on_comments on_system_emails}
|
||||
has_filters %w[all on_users on_proposals on_debates on_comments on_system_emails]
|
||||
|
||||
def show
|
||||
@activity = Activity.for_render.send(@current_filter)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class Admin::BannersController < Admin::BaseController
|
||||
include Translatable
|
||||
|
||||
has_filters %w{all with_active with_inactive}, only: :index
|
||||
has_filters %w[all with_active with_inactive], only: :index
|
||||
|
||||
before_action :banner_sections, only: [:edit, :new, :create, :update]
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ class Admin::BudgetsController < Admin::BaseController
|
||||
include FeatureFlags
|
||||
feature_flag :budgets
|
||||
|
||||
has_filters %w{open finished}, only: :index
|
||||
has_filters %w[open finished], only: :index
|
||||
|
||||
before_action :load_budget, except: [:index, :new, :create]
|
||||
load_and_authorize_resource
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class Admin::HiddenBudgetInvestmentsController < Admin::BaseController
|
||||
include FeatureFlags
|
||||
|
||||
has_filters %w{all with_confirmed_hide without_confirmed_hide}, only: :index
|
||||
has_filters %w[all with_confirmed_hide without_confirmed_hide], only: :index
|
||||
|
||||
feature_flag :budgets
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Admin::HiddenCommentsController < Admin::BaseController
|
||||
has_filters %w{without_confirmed_hide all with_confirmed_hide}
|
||||
has_filters %w[without_confirmed_hide all with_confirmed_hide]
|
||||
|
||||
before_action :load_comment, only: [:confirm_hide, :restore]
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ class Admin::HiddenDebatesController < Admin::BaseController
|
||||
|
||||
feature_flag :debates
|
||||
|
||||
has_filters %w{without_confirmed_hide all with_confirmed_hide}, only: :index
|
||||
has_filters %w[without_confirmed_hide all with_confirmed_hide], only: :index
|
||||
|
||||
before_action :load_debate, only: [:confirm_hide, :restore]
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Admin::HiddenUsersController < Admin::BaseController
|
||||
has_filters %w{without_confirmed_hide all with_confirmed_hide}, only: :index
|
||||
has_filters %w[without_confirmed_hide all with_confirmed_hide], only: :index
|
||||
|
||||
before_action :load_user, only: [:confirm_hide, :restore]
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Admin::OrganizationsController < Admin::BaseController
|
||||
has_filters %w{pending all verified rejected}, only: :index
|
||||
has_filters %w[pending all verified rejected], only: :index
|
||||
|
||||
load_and_authorize_resource except: :search
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class Admin::ProposalNotificationsController < Admin::BaseController
|
||||
|
||||
has_filters %w{without_confirmed_hide all with_confirmed_hide}, only: :index
|
||||
has_filters %w[without_confirmed_hide all with_confirmed_hide], only: :index
|
||||
|
||||
before_action :load_proposal, only: [:confirm_hide, :restore]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user