Class: Noticed::DeliveryMethods::Database
- Defined in:
- lib/noticed/delivery_methods/database.rb
Instance Attribute Summary
Attributes inherited from Base
#notification, #options, #params, #recipient, #record
Instance Method Summary collapse
-
#deliver ⇒ Object
Must return the database record.
Methods inherited from Base
inherited, options, #perform, validate!
Instance Method Details
#deliver ⇒ Object
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 |