We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e24e9e commit 16e5d15Copy full SHA for 16e5d15
bin/rails
@@ -1,9 +1,7 @@
1
#!/usr/bin/env ruby
2
3
-begin
4
- require "rails/cli"
5
-rescue LoadError
+if File.exists?(File.join(File.expand_path('../..', __FILE__), '.git'))
6
railties_path = File.expand_path('../../railties/lib', __FILE__)
7
$:.unshift(railties_path)
8
9
end
+require "rails/cli"
0 commit comments