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.

9 lines
372 B

1 month ago
3 months ago
3 months ago
  1. return unless Rails.application.server?
  2. Rails.application.config.after_initialize do
  3. Hot::Constants.on_change(:log_active_record) { |bool| ActiveRecord::Base.logger.level = bool ? :debug : :fatal }
  4. Hot::Constants.on_change(:log_action_view) do |bool|
  5. ActionView::Base.logger.level = bool ? :debug : :fatal
  6. Rails.application.config.dev_loader.launch
  7. end
  8. end