Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use RACK_ENV if available #49

Merged
merged 1 commit into from Apr 19, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/tasks/standalone_migrations.rb
Expand Up @@ -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
Expand Down