We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7ead482 + a06dd7a commit 37b5bd2Copy full SHA for 37b5bd2
lib/exception_notifier/notifier.rb
@@ -52,6 +52,7 @@ def exception_notification(env, exception)
52
53
prefix = "#{@options[:email_prefix]}#{@kontroller.controller_name}##{@kontroller.action_name}"
54
subject = "#{prefix} (#{@exception.class}) #{@exception.message.inspect}"
55
+ subject = subject.length > 120 ? subject[0...120] + "..." : subject
56
57
mail(:to => @options[:exception_recipients], :from => @options[:sender_address], :subject => subject) do |format|
58
format.text { render "#{mailer_name}/exception_notification" }
0 commit comments