Skip to content

Commit

Permalink
make script/console work
Browse files Browse the repository at this point in the history
  • Loading branch information
wycats committed Aug 4, 2010
1 parent 207e7fd commit da923d5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions commands/console.rb
Original file line number Diff line number Diff line change
@@ -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.