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

RAILS_ENV is deprecated #33

Closed
tisba opened this issue Oct 23, 2010 · 5 comments
Closed

RAILS_ENV is deprecated #33

tisba opened this issue Oct 23, 2010 · 5 comments

Comments

@tisba
Copy link

tisba commented Oct 23, 2010

lib/couch_potato/railtie.rb:6 uses RAILS_ENV instead of Rails.env

@langalex
Copy link
Owner

@tisba
Copy link
Author

tisba commented Oct 24, 2010

hmm, okay. any ideas how to get rid of the deprecation warning?

@upstream
Copy link

Rails.version > 3 ? Rails.env : RAILS_ENV

@kamarcum
Copy link

kamarcum commented Jun 2, 2011

In rails 3.1 RAILS_ENV is removed entirely. bump for one-line fix in upstream's comment.

Edit: If you're reading this and want a quick workaround, put "RAILS_ENV=Rails.env" at the top of config/application.rb

@langalex
Copy link
Owner

langalex commented Jun 6, 2011

i just pulled this in.

@langalex langalex closed this as completed Jun 6, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants