Class: Noticed::DeliveryMethods::Database

Inherits:
Base
  • Object
show all
Defined in:
lib/noticed/delivery_methods/database.rb

Instance Attribute Summary

Attributes inherited from Base

#notification, #options, #params, #recipient, #record

Instance Method Summary collapse

Methods inherited from Base

inherited, options, #perform, validate!

Instance Method Details

#deliverObject

Must return the database record



5
6
7
# File 'lib/noticed/delivery_methods/database.rb', line 5

def deliver
  recipient.send(association_name).create!(attributes)
end