Class: Notifun::Preference
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Notifun::Preference
- Defined in:
- app/models/notifun/preference.rb
Instance Method Summary collapse
Instance Method Details
#notification_methods ⇒ Object
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 |