Class: Notifun::Preference

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/notifun/preference.rb

Instance Method Summary collapse

Instance Method Details

#notification_methodsObject



6
7
8
9
10
11
12
# File 'app/models/notifun/preference.rb', line 6

def notification_methods
  array = []
  array << Notifun::NotificationMethods::EMAIL if email
  array << Notifun::NotificationMethods::PUSH if push
  array << Notifun::NotificationMethods::TEXT if text
  array & Notifun.configuration.notification_methods
end