Module: MtkFramework::ActiveInteractionConcerns::Loggable

Extended by:
ActiveSupport::Concern
Defined in:
lib/mtk_framework/active_interaction_concerns/loggable.rb

Defined Under Namespace

Classes: BacktraceCleaner

Instance Method Summary collapse

Instance Method Details

#log_errorsObject



58
59
60
61
62
63
# File 'lib/mtk_framework/active_interaction_concerns/loggable.rb', line 58

def log_errors
  error_msg = errors.full_messages.to_sentence
  Rails.logger.info(
    "Interaction #{self.class.name} failed: '#{error_msg}' called from: #{interaction_caller}"
  )
end