Module: Devise::Models::HookableNotification::ClassMethods

Defined in:
lib/devise-hookable-notifications.rb

Instance Method Summary collapse

Instance Method Details

#after_devise_notification(notification, options = {}) ⇒ Object



21
22
23
24
25
26
27
# File 'lib/devise-hookable-notifications.rb', line 21

def after_devise_notification(notification, options = {})
  @_after_devise_notification_callbacks ||= {}
  if options[:perform].present?
    @_after_devise_notification_callbacks[notification] ||= []
    @_after_devise_notification_callbacks[notification] << options[:perform]
  end
end