Module: UserNotification::ORM::Mongoid::Activist

Extended by:
ActiveSupport::Concern
Defined in:
lib/user_notification/orm/mongoid/activist.rb

Overview

Module extending classes that serve as owners

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



8
9
10
# File 'lib/user_notification/orm/mongoid/activist.rb', line 8

def self.extended(base)
  base.extend(ClassMethods)
end

Instance Method Details

#notificationsArray<Notification>

Association of notifications as their owner.

Returns:

  • (Array<Notification>)

    Activities which self is the owner of.



# File 'lib/user_notification/orm/mongoid/activist.rb', line 11

#private_notificationsArray<Notification>

Association of notifications as their recipient.

Returns:

  • (Array<Notification>)

    Activities which self is the recipient of.



# File 'lib/user_notification/orm/mongoid/activist.rb', line 15