Permalink
Browse files

Merge pull request #49 from scoz/patch-1

Use RACK_ENV if available
  • Loading branch information...
twobitlabs committed Apr 19, 2012
2 parents 9471e16 + e4b0949 commit f80d8716268b594c300e7bbc3f7e14a4d099cf71
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 f80d871

Please sign in to comment.