module NotifyMe::ActiveRecord::ClassMethods
Public Instance Methods
has_many_notifications()
click to toggle source
# File lib/notify_me/active_record.rb, line 7 def has_many_notifications has_many :notifications, :as => :notifyable, :class_name => 'NotifyMe::Notification' has_many :actions, :class_name => 'NotifyMe::Action', :through => :notifications end