Permalink
Browse files

Make script/dbconsole work again [#3690 state:resolved]

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information...
1 parent 92f49b5 commit 488b4c8c5c8e441c0aaaa9d4f71263dd3beacde4 @samgranieri samgranieri committed with lifo Jan 14, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/lib/rails/commands/dbconsole.rb
@@ -34,8 +34,8 @@ def start
abort opt.to_s unless (0..1).include?(ARGV.size)
end
- unless config = YAML::load(ERB.new(IO.read("#{@app.root}/config/database.yml")).result)[env]
- abort "No database is configured for the environment '#{env}'"
+ unless config = YAML::load(ERB.new(IO.read("#{@app.root}/config/database.yml")).result)[Rails.env]
+ abort "No database is configured for the environment '#{Rails.env}'"
end

0 comments on commit 488b4c8

Please sign in to comment.