Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Use RACK_ENV if available #49

Merged
merged 1 commit into from

2 participants

@scoz

No description provided.

@twobitlabs twobitlabs merged commit f80d871 into thuss:master
@twobitlabs
Collaborator

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 19, 2012
  1. @scoz

    Use RACK_ENV if available

    scoz authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/tasks/standalone_migrations.rb
View
2  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
Something went wrong with that request. Please try again.