Permalink
Browse files

make script/console work

  • Loading branch information...
1 parent 207e7fd commit da923d503a3414cc38b45c69078aa7266bd4df64 @wycats committed Aug 4, 2010
Showing with 7 additions and 0 deletions.
  1. +7 −0 commands/console.rb
View
7 commands/console.rb
@@ -0,0 +1,7 @@
+ARGV.unshift "console"
+
+root = File.expand_path("../../../../config", __FILE__)
+APP_PATH = File.exist?("#{root}/application.rb") ? "#{root}/application.rb" : "#{root}/environment.rb"
+
+require "rails/commands"
+

0 comments on commit da923d5

Please sign in to comment.