Module: Massive::Notifications::ClassMethods
- Defined in:
- lib/massive/notifications.rb
Instance Method Summary collapse
Instance Method Details
#notifier(name, options = {}) ⇒ Object
26 27 28 29 |
# File 'lib/massive/notifications.rb', line 26 def notifier(name, ={}) @notifier_class = name.is_a?(Class) ? name : "massive/notifiers/#{name}".camelize.constantize = end |
#notifier_class ⇒ Object
31 32 33 |
# File 'lib/massive/notifications.rb', line 31 def notifier_class @notifier_class || Massive::Notifiers::Base end |
#notifier_options ⇒ Object
35 36 37 |
# File 'lib/massive/notifications.rb', line 35 def end |