app/models/user.rb
# This returns false unless the user wants an email notification for the given type, then it returns the
# NotificationFrequency object.
This returns false unless the user wants an email notification for the given type, then it returns the
NotificationFrequency object.
This returns false unless the user wants an email notification for the given type then it returns the NotificationFrequency object .
def listening_to?(type)
    if notification
      fqz = notification.send(type)
      return false if fqz == NotificationFrequency.never
      return fqz
    else
      add_email_notification
      return false
    end
  end
def listening_to? ( type ) if notification fqz = notification . send ( type ) return false if fqz == NotificationFrequency . never return fqz else add_email_notification return false end end
This returns false unless the user wants an email notification for the given type, then it returns the
NotificationFrequency object.
This returns false unless the user wants an email notification for the given type then it returns the NotificationFrequency object .
type
<not_specific>