Removed RAILS_ENV code