X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/043d29fd7eb72048cf5d07edfbc20ec5c25af708..7dbf8d83369cb73929080c4ba23fdd7dcd0184df:/script/rails?ds=sidebyside diff --git a/script/rails b/script/rails index 9a5a81dcf..4cea4ea17 100755 --- a/script/rails +++ b/script/rails @@ -1,6 +1,6 @@ #!/usr/bin/env ruby # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application. -APP_PATH = File.expand_path("../../config/application", __FILE__) -require File.expand_path("../../config/boot", __FILE__) +APP_PATH = File.expand_path("../config/application", __dir__) +require File.expand_path("../config/boot", __dir__) require "rails/commands"