Module: UserNotification::ORM::ActiveRecord::Notifiable

Defined in:
lib/user_notification/orm/active_record/notifiable.rb

Overview

Implements Notifiable for ActiveRecord

See Also:

Class Method Summary collapse

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