Skip to content

Commit cfbdadf

Browse files
committed
fix: adjust array symbol syntax issues
1 parent 6e3cab8 commit cfbdadf

17 files changed

Lines changed: 40 additions & 40 deletions

app/controllers/api/v1/strategy/draft_plans_controller.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,10 @@ def draft_plan_params
180180
our_bans: [],
181181
opponent_bans: [],
182182
priority_picks: {},
183-
if_then_scenarios: [
184-
:trigger,
185-
:action,
186-
:note
183+
if_then_scenarios: %i[
184+
trigger
185+
action
186+
note
187187
]
188188
)
189189
end

app/modules/scouting/controllers/watchlist_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module Scouting
66
# Watchlist Controller
77
# Manages organization-specific player scouting watchlists
88
class WatchlistController < Api::V1::BaseController
9-
before_action :set_authorized_target, only: [:create, :destroy]
9+
before_action :set_authorized_target, only: %i[create destroy]
1010
# GET /api/v1/scouting/watchlist
1111
# Returns high-priority scouting targets in org's watchlist
1212
def index

app/modules/strategy/controllers/draft_plans_controller.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,10 @@ def draft_plan_params
180180
our_bans: [],
181181
opponent_bans: [],
182182
priority_picks: {},
183-
if_then_scenarios: [
184-
:trigger,
185-
:action,
186-
:note
183+
if_then_scenarios: %i[
184+
trigger
185+
action
186+
note
187187
]
188188
)
189189
end

config/initializers/rack_attack.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class Attack
9898
req = payload[:request]
9999

100100
# Only log if request was actually blocked or throttled
101-
if [:throttle, :blocklist].include?(req.env['rack.attack.match_type'])
101+
if %i[throttle blocklist].include?(req.env['rack.attack.match_type'])
102102
discriminator = req.env['rack.attack.matched']
103103
Rails.logger.warn "[Rack::Attack] #{req.env['rack.attack.match_type'].to_s.capitalize} #{discriminator}: #{req.env['REQUEST_METHOD']} #{req.url} from #{req.ip}"
104104
end

config/routes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
end
107107

108108
# FAQ
109-
resources :faq, only: [:index, :show], param: :slug, controller: 'faqs' do
109+
resources :faq, only: %i[index show], param: :slug, controller: 'faqs' do
110110
member do
111111
post :helpful, to: 'faqs#mark_helpful'
112112
post 'not-helpful', to: 'faqs#mark_not_helpful'

db/migrate/20260111120000_create_support_tickets.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def change
3434
add_index :support_tickets, :category
3535
add_index :support_tickets, :priority
3636
add_index :support_tickets, :deleted_at
37-
add_index :support_tickets, [:organization_id, :status]
38-
add_index :support_tickets, [:assigned_to_id, :status]
37+
add_index :support_tickets, %i[organization_id status]
38+
add_index :support_tickets, %i[assigned_to_id status]
3939
end
4040
end

db/migrate/20260111120001_create_support_ticket_messages.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def change
1616
t.timestamps
1717
end
1818

19-
add_index :support_ticket_messages, [:support_ticket_id, :created_at]
19+
add_index :support_ticket_messages, %i[support_ticket_id created_at]
2020
add_index :support_ticket_messages, :message_type
2121
end
2222
end

db/migrate/20260111120002_create_support_faqs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ def change
2727
add_index :support_faqs, :slug, unique: true
2828
add_index :support_faqs, :category
2929
add_index :support_faqs, :locale
30-
add_index :support_faqs, [:published, :position]
30+
add_index :support_faqs, %i[published position]
3131
end
3232
end

db/migrate/20260118173507_create_draft_plans.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ def change
2222
add_foreign_key :draft_plans, :users, column: :updated_by_id
2323

2424
add_index :draft_plans, :organization_id
25-
add_index :draft_plans, [:organization_id, :opponent_team]
26-
add_index :draft_plans, [:organization_id, :is_active]
25+
add_index :draft_plans, %i[organization_id opponent_team]
26+
add_index :draft_plans, %i[organization_id is_active]
2727
add_index :draft_plans, :patch_version
2828
add_index :draft_plans, :created_by_id
2929
add_index :draft_plans, :updated_by_id

db/migrate/20260118173516_create_tactical_boards.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def change
2121
add_foreign_key :tactical_boards, :users, column: :updated_by_id
2222

2323
add_index :tactical_boards, :organization_id
24-
add_index :tactical_boards, [:organization_id, :created_at]
24+
add_index :tactical_boards, %i[organization_id created_at]
2525
add_index :tactical_boards, :match_id
2626
add_index :tactical_boards, :scrim_id
2727
add_index :tactical_boards, :created_by_id

0 commit comments

Comments
 (0)