Skip to content

Commit 60fac85

Browse files
authored
Merge pull request reidmorrison#197 from nhosoya/patch-3
Fix: `log_arguments` of Mailer does not work properly
2 parents f3aea8c + 89370d2 commit 60fac85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rails_semantic_logger/action_mailer/log_subscriber.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def action
9292
end
9393

9494
def formatted_args
95-
if defined?(mailer.contantize.log_arguments?) && !mailer.contantize.log_arguments?
95+
if defined?(mailer.constantize.log_arguments?) && !mailer.constantize.log_arguments?
9696
""
9797
else
9898
JSON.pretty_generate(event.payload[:args].map { |arg| format(arg) }) if event.payload[:args].present?

0 commit comments

Comments
 (0)