Module: UserNotification::ORM::MongoMapper::Notifiable
- Defined in:
- lib/user_notification/orm/mongo_mapper/notifiable.rb
Class Method Summary collapse
Class Method Details
.extended(base) ⇒ Object
5 6 7 |
# File 'lib/user_notification/orm/mongo_mapper/notifiable.rb', line 5 def self.extended(base) base.many :notifications, :class_name => "::UserNotification::Notification", order: :created_at.asc, :as => :notifiable end |