You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
365 B

5 months ago
  1. # Development Constants
  2. module LiveConstants
  3. # constants
  4. STIMULUS_DEBUG = false
  5. LOG_ACTIVE_RECORD = false
  6. LOG_ACTION_VIEW = false
  7. def self.reload!
  8. ActionView::Base.logger.level = LOG_ACTION_VIEW ? :debug : :fatal
  9. ActiveRecord::Base.logger.level = LOG_ACTIVE_RECORD ? :debug : :fatal
  10. SemanticLogger[to_s].warn 'reloaded!'
  11. end
  12. reload!
  13. end