Class: PasswordBreachAlert::BreachesPolicies::SendDeviseNotification
- Inherits:
-
Object
- Object
- PasswordBreachAlert::BreachesPolicies::SendDeviseNotification
- Defined in:
- lib/password_breach_alert/breaches_policies/send_devise_notification.rb
Overview
notify the user with an email if there are any breaches
Instance Method Summary collapse
Instance Method Details
#call(user, breaches) ⇒ Object
5 6 7 8 9 |
# File 'lib/password_breach_alert/breaches_policies/send_devise_notification.rb', line 5 def call(user, breaches) return if breaches.none? user.send(:send_devise_notification, :password_breach_alert, breaches) end |