diff options
Diffstat (limited to 'railties/exe/rails')
-rwxr-xr-x | railties/exe/rails | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/railties/exe/rails b/railties/exe/rails index 82c17cabce..79af4db6b6 100755 --- a/railties/exe/rails +++ b/railties/exe/rails @@ -1,9 +1,10 @@ #!/usr/bin/env ruby +# frozen_string_literal: true -git_path = File.expand_path('../../../.git', __FILE__) +git_path = File.expand_path("../../.git", __dir__) if File.exist?(git_path) - railties_path = File.expand_path('../../lib', __FILE__) + railties_path = File.expand_path("../lib", __dir__) $:.unshift(railties_path) end require "rails/cli" |