Permalink
Browse files

Use RACK_ENV if available

  • Loading branch information...
1 parent 9471e16 commit e4b0949adec3216798cd2e1452254e10ca80096f @scoz scoz committed Apr 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/tasks/standalone_migrations.rb
@@ -14,7 +14,7 @@ def standalone_configurator
module Rails
def self.env
- s = (ENV['RAILS_ENV'] || ENV['DB'] || 'development').dup # env is frozen -> dup
+ s = (ENV['RAILS_ENV'] || ENV['RACK_ENV'] || ENV['DB'] || 'development').dup # env is frozen -> dup
def s.development?; self == 'development';end
s
end

0 comments on commit e4b0949

Please sign in to comment.