Module: SiteAnnouncements::Acts::InstanceMethods

Defined in:
lib/site_announcements.rb

Instance Method Summary collapse

Instance Method Details

#check_for_notifiee_infoObject



28
29
30
31
32
33
# File 'lib/site_announcements.rb', line 28

def check_for_notifiee_info
  if (self.notifiee_info.nil?)
    n=NotifieeInfo.new
    self.notifiee_info=n          
  end
end

#receive_notifications?Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/site_announcements.rb', line 35

def receive_notifications?
  self.notifiee_info.try:receive_notifications?
end