diff options
author | Xavier Noria <fxn@hashref.com> | 2016-03-05 08:09:20 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2016-03-05 08:09:20 +0100 |
commit | 5b8738c2df003a96f0e490c43559747618d10f5f (patch) | |
tree | 0ae080ad32348af5df835df636d742da3d102031 /railties | |
parent | 225bd148232a970174736ab5448eca42a696670f (diff) | |
download | rails-5b8738c2df003a96f0e490c43559747618d10f5f.tar.gz rails-5b8738c2df003a96f0e490c43559747618d10f5f.tar.bz2 rails-5b8738c2df003a96f0e490c43559747618d10f5f.zip |
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.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/bin/rails | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/bin/rails b/railties/lib/rails/generators/rails/app/templates/bin/rails index 80ec8080ab..513a2e0183 100644 --- a/railties/lib/rails/generators/rails/app/templates/bin/rails +++ b/railties/lib/rails/generators/rails/app/templates/bin/rails @@ -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' |