X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/52e5fa6ad78f375cec5a207a123a4aa3939c8ddf..becccea034bc1ca4609c904095f4f86e17e349b4:/script/rails diff --git a/script/rails b/script/rails index f8da2cffd..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__) -require 'rails/commands' +APP_PATH = File.expand_path("../config/application", __dir__) +require File.expand_path("../config/boot", __dir__) +require "rails/commands"