Method: Noticed::Model#to_notification
- Defined in:
- lib/noticed/model.rb
#to_notification ⇒ Object
Rehydrate the database notification into the Notification object for rendering
37 38 39 40 41 42 43 |
# File 'lib/noticed/model.rb', line 37 def to_notification @_notification ||= begin instance = type.constantize.with(params) instance.record = self instance end end |