Module: RailsEnvLocal::RailsEnv
- Defined in:
- lib/rails_env_local/rails_env.rb
Overview
This module is prepended to Rails module
Instance Method Summary collapse
Instance Method Details
#env ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/rails_env_local/rails_env.rb', line 4 def env result = super if result == "development" msg = %[WARNING: environment is incorrectly "development". Early access of Rails.env might be the cause, consider moving `RailsEnvLocal.set_local_environment` up in config/boot.rb] warn(msg) Rails.logger.error(msg) if Rails.logger end result end |