Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bring back bin/rails to life on edge

  • Loading branch information...
commit bd34df00cf7f9d4d123884095bd82f68c29279ce 1 parent 8e9df34
@spastorino spastorino authored wycats committed
Showing with 7 additions and 1 deletion.
  1. +7 −1 bin/rails
View
8 bin/rails
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.