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, = {}) @_after_devise_notification_callbacks ||= {} if [:perform].present? @_after_devise_notification_callbacks[notification] ||= [] @_after_devise_notification_callbacks[notification] << [:perform] end end |