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