mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
define APP_PATH with __dir__
Defining paths relative to a file name has always hurt my soul, with __dir__ we can restore order in the Universe.
This commit is contained in:
parent
225bd14823
commit
5b8738c2df
1 changed files with 1 additions and 1 deletions
|
@ -1,3 +1,3 @@
|
|||
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
||||
APP_PATH = File.expand_path('../config/application', __dir__)
|
||||
require_relative '../config/boot'
|
||||
require 'rails/commands'
|
||||
|
|
Loading…
Reference in a new issue