Class: ENV_BANG::Railtie
- Inherits:
-
Rails::Railtie
- Object
- Rails::Railtie
- ENV_BANG::Railtie
- Defined in:
- lib/env_bang-rails.rb
Instance Method Summary collapse
Instance Method Details
#env_rb_file ⇒ Object
5 6 7 |
# File 'lib/env_bang-rails.rb', line 5 def env_rb_file File.join(Rails.root.to_s, 'config/env.rb') end |
#warn(msg) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/env_bang-rails.rb', line 9 def warn(msg) if Rails.logger Rails.logger.warn(msg) else puts "WARNING: #{msg}" end end |