Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Use RACK_ENV if available #49

Merged
merged 1 commit into from

2 participants

Ryan Souza Two Bit Labs
Ryan Souza

No description provided.

Two Bit Labs twobitlabs merged commit f80d871 into from
Two Bit Labs
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. Ryan Souza

    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
2  lib/tasks/standalone_migrations.rb
View
@@ -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.