From 5b1af543dfd50b20c04608e661f3864e07fb7bd8 Mon Sep 17 00:00:00 2001 From: Evan Marell Date: Fri, 23 Mar 2018 19:18:08 -0700 Subject: [PATCH] Use percent array literals for large arrays of symbols. --- test/dummy/app/controllers/overrides/sessions_controller.rb | 4 +--- .../app/controllers/overrides/token_validations_controller.rb | 4 +--- test/dummy/config.ru | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/test/dummy/app/controllers/overrides/sessions_controller.rb b/test/dummy/app/controllers/overrides/sessions_controller.rb index 2c73ce0e9..18178202f 100644 --- a/test/dummy/app/controllers/overrides/sessions_controller.rb +++ b/test/dummy/app/controllers/overrides/sessions_controller.rb @@ -10,9 +10,7 @@ def create @resource.save render json: { - data: @resource.as_json(except: [ - :tokens, :created_at, :updated_at - ]), + data: @resource.as_json(except: %i[tokens created_at updated_at]), override_proof: OVERRIDE_PROOF } diff --git a/test/dummy/app/controllers/overrides/token_validations_controller.rb b/test/dummy/app/controllers/overrides/token_validations_controller.rb index 057a2865d..b8160cc2f 100644 --- a/test/dummy/app/controllers/overrides/token_validations_controller.rb +++ b/test/dummy/app/controllers/overrides/token_validations_controller.rb @@ -7,9 +7,7 @@ def validate_token if @resource render json: { success: true, - data: @resource.as_json(except: [ - :tokens, :created_at, :updated_at - ]), + data: @resource.as_json(except: %i[tokens created_at updated_at]), override_proof: OVERRIDE_PROOF } else diff --git a/test/dummy/config.ru b/test/dummy/config.ru index 0751990f2..8c6d62ca3 100644 --- a/test/dummy/config.ru +++ b/test/dummy/config.ru @@ -11,6 +11,6 @@ use Rack::Cors do resource '*', headers: :any, expose: ['access-token', 'expiry', 'token-type', 'uid', 'client'], - methods: [:get, :post, :options, :delete, :put] + methods: %i[get post options delete put] end end