module Notifiable
Constants
- VERSION
Public Class Methods
configure() { |self| ... }
click to toggle source
# File lib/notifiable.rb, line 29 def self.configure yield self end
notifier_class(notification, device)
click to toggle source
# File lib/notifiable.rb, line 33 def self.notifier_class(notification, device) Notifiable.find_notifier_class_proc ? Notifiable.find_notifier_class_proc.call(notification, device) : Notifiable.notifier_classes[device.provider.to_sym] end