Module: HasNotifications::ActsAsNotification
- Defined in:
- lib/has_notifications/acts_as_notification.rb
Instance Method Summary collapse
Instance Method Details
#acts_as_notification ⇒ Object
6 7 8 |
# File 'lib/has_notifications/acts_as_notification.rb', line 6 def acts_as_notification has_one :destination, class_name: "HasNotifications::HnNotification", as: :notification, dependent: :destroy end |