Class: Webhooks::Notification
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Webhooks::Notification
- Defined in:
- app/models/webhooks/notification.rb
Instance Method Summary collapse
Methods inherited from ApplicationRecord
descendants_using_encryption, lockbox_options, #timestamp_attributes_for_update_in_model, #valid?
Instance Method Details
#final_attempt ⇒ Object
16 17 18 19 20 |
# File 'app/models/webhooks/notification.rb', line 16 def final_attempt return nil unless final_attempt_id webhooks_notification_attempts.select { |a| a.id == final_attempt_id }.first end |