Method: ActivityNotification::ORM::Mongoid::Notification.opened_only
- Defined in:
- lib/activity_notification/orm/mongoid/notification.rb
.opened_only ⇒ Mongoid::Criteria<Notificaion>
Selects opened notifications only with limit.
92 |
# File 'lib/activity_notification/orm/mongoid/notification.rb', line 92 scope :opened_only, ->(limit) { limit == 0 ? none : opened_only!.limit(limit) } |