Module: UserNotification::ORM::ActiveRecord::Notifiable
- Defined in:
- lib/user_notification/orm/active_record/notifiable.rb
Overview
Implements Notifiable for ActiveRecord
Class Method Summary collapse
-
.extended(base) ⇒ Object
Creates an association for notifications where self is the notifiable object.
Class Method Details
.extended(base) ⇒ Object
Creates an association for notifications where self is the notifiable object.
9 10 11 |
# File 'lib/user_notification/orm/active_record/notifiable.rb', line 9 def self.extended(base) base.has_many :notifications, :class_name => "::UserNotification::Notification", :as => :notifiable end |