lib/effective_logging/engine.rb in effective_logging-3.2.1 vs lib/effective_logging/engine.rb in effective_logging-3.2.2

- old
+ new

@@ -15,10 +15,12 @@ end # Automatically Log Emails initializer 'effective_logging.emails' do |app| if EffectiveLogging.email_enabled == true - ActionMailer::Base.register_interceptor(EffectiveLogging::EmailLogger) + Rails.application.config.to_prepare do + ActionMailer::Base.register_interceptor(EffectiveLogging::EmailLogger) + end end end # Include acts_as_loggable concern and allow any ActiveRecord object to call it with log_changes() initializer 'effective_logging.active_record' do |app|