Method: ActivityNotification::ORM::Mongoid::Notification#target

Defined in:
lib/activity_notification/orm/mongoid/notification.rb

#targetObject

Belongs to target instance of this notification as polymorphic association.

Returns:

  • (Object)

    Target instance of this notification



22
# File 'lib/activity_notification/orm/mongoid/notification.rb', line 22

belongs_to_polymorphic_xdb_record :target, store_with_associated_records: true, as_json_options: { methods: [:printable_type, :printable_target_name] }