Skip to content
Browse files

[Guides] change rails bin section

  • Loading branch information...
1 parent acdf8ac commit d4d87941cbf4d8204c8d3ac6f4a87c29e42445b0 @oscardelben oscardelben committed
Showing with 5 additions and 6 deletions.
  1. +5 −6 guides/source/initialization.textile
11 guides/source/initialization.textile
@@ -24,16 +24,15 @@ The actual +rails+ command is kept in _bin/rails_:
#!/usr/bin/env ruby
- require "rails/cli"
-rescue LoadError
- railties_path = File.expand_path('../../railties/lib', __FILE__)
+if File.exists?(File.join(File.expand_path('../../..', __FILE__), '.git'))
+ railties_path = File.expand_path('../../lib', __FILE__)
- require "rails/cli"
+require "rails/cli"
-This file will attempt to load +rails/cli+. If it cannot find it then +railties/lib+ is added to the load path (+$:+) before retrying.
+This file will first attempt to push the +railties/lib+ directory if
+present, and then require +rails/cli+.
h4. +railties/lib/rails/cli.rb+

0 comments on commit d4d8794

Please sign in to comment.
Something went wrong with that request. Please try again.