Module: Typus::Reloader
- Included in:
- Admin::MasterController, TypusController
- Defined in:
- lib/typus/reloader.rb
Instance Method Summary collapse
-
#reload_config_et_roles ⇒ Object
Reload config and roles when app is running in development.
Instance Method Details
#reload_config_et_roles ⇒ Object
Reload config and roles when app is running in development.
6 7 8 9 10 11 |
# File 'lib/typus/reloader.rb', line 6 def reload_config_et_roles return if Rails.env.production? logger.info "=> [typus] Configuration files have been reloaded." Typus::Configuration.roles! Typus::Configuration.config! end |