lib/activity_notification/orm/mongoid/notification.rb
def unopened_group_member_notifier_count
            group_members.unopened_only
                         .where(notifier_type: notifier_type)
                         .where(:notifier_id.ne => notifier_id)
                         .distinct(:notifier_id)
                         .count
          end
# Returns count of group member notifiers of the unopened notification not including group owner notifier.
# This method is designed to cache group by query result to avoid N+1 call.
# @api protected
# @todo Avoid N+1 call
#
# @return [Integer] Count of group member notifiers of the unopened notification
Returns count of group member notifiers of the unopened notification not including group owner notifier.
This method is designed to cache group by query result to avoid N+1 call.
Returns count of group member notifiers of the unopened notification not including group owner notifier . This method is designed to cache group by query result to avoid N + 1 call .
def unopened_group_member_notifier_count
            group_members.unopened_only
                         .where(notifier_type: notifier_type)
                         .where(:notifier_id.ne => notifier_id)
                         .distinct(:notifier_id)
                         .count
          end
def unopened_group_member_notifier_count group_members . unopened_only . where ( notifier_type : notifier_type ) . where ( :notifier_id . ne => notifier_id ) . distinct ( :notifier_id ) . count end
Returns count of group member notifiers of the unopened notification not including group owner notifier.
Returns count of group member notifiers of the unopened notification not including group owner notifier .
Count of group member notifiers of the unopened notification
Count of group member notifiers of the unopened notification
Integer
api
None
todo
Avoid N+1 call
Avoid N + 1 call