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.
1 parent 4b5807c commit b407f2aCopy full SHA for b407f2a
app/models/solid_errors/occurrence.rb
@@ -2,7 +2,7 @@ module SolidErrors
2
class Occurrence < Record
3
belongs_to :error, class_name: "SolidErrors::Error"
4
5
- after_create_commit :send_email, if: -> { SolidErrors.send_emails && SolidErrors.email_to.present? }
+ after_create_commit :send_email, if: -> { SolidErrors.send_emails? && SolidErrors.email_to.present? }
6
after_create_commit :clear_resolved_errors, if: :should_clear_resolved_errors?
7
8
# The parsed exception backtrace. Lines in this backtrace that are from installed gems
0 commit comments