Removed dependency on rails_env