diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-08 01:06:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-08 07:06:20 +0100 |
commit | 1487fcde93fece43ea786faade93d3dfaa393e67 (patch) | |
tree | 9d70fcbb318020a33c9bfbbe281b9e889a0e4eec | |
parent | d3f59f52c33e67e3beec2a6b65cccc86352a1468 (diff) |
Apply Rubocop Style/ExpandPathArguments (#23450)
-rw-r--r-- | config.ru | 2 | ||||
-rw-r--r-- | spec/rails_helper.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/config.ru b/config.ru index 3476455ef..d7295e476 100644 --- a/config.ru +++ b/config.ru @@ -1,5 +1,5 @@ # frozen_string_literal: true # This file is used by Rack-based servers to start the application. -require ::File.expand_path('../config/environment', __FILE__) +require ::File.expand_path('config/environment', __dir__) run Rails.application diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 02827a388..c197bc007 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -1,5 +1,5 @@ ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) +require File.expand_path('../config/environment', __dir__) abort("The Rails environment is running in production mode!") if Rails.env.production? |