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