Permalink
Browse files

Bring back bin/rails to life on edge

  • Loading branch information...
spastorino authored and wycats committed Apr 13, 2010
1 parent 8e9df34 commit bd34df00cf7f9d4d123884095bd82f68c29279ce
Showing with 7 additions and 1 deletion.
  1. +7 −1 bin/rails
View
@@ -1 +1,7 @@
-require 'rails/cli'
+begin
+ require "rails/cli"
+rescue LoadError
+ railties_path = File.expand_path('../../railties/lib', __FILE__)
+ $:.unshift(railties_path)
+ require "rails/cli"
+end

0 comments on commit bd34df0

Please sign in to comment.