RAILS_ENV bugfix.