1
0
Fork 0
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:
Xavier Noria 2016-03-05 08:09:20 +01:00
parent 225bd14823
commit 5b8738c2df

View file

@ -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'