Module: SiteAnnouncements::Acts::ClassMethods

Defined in:
lib/site_announcements.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_notifiee(options = {}, &extension) ⇒ Object



11
12
13
14
15
16
17
18
19
# File 'lib/site_announcements.rb', line 11

def acts_as_notifiee(options = {}, &extension)
  
  has_one :notifiee_info,:dependent=>:destroy,:as=>:notifiee    
  
  before_save :check_for_notifiee_info
  
  extend SiteAnnouncements::Acts::SingletonMethods
  include SiteAnnouncements::Acts::InstanceMethods        
end