Module: NotifyMe::ActiveRecord::ClassMethods

Defined in:
lib/notify_me/active_record.rb

Instance Method Summary collapse

Instance Method Details

#has_many_notificationsObject



7
8
9
10
# 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