class PasswordBreachAlert::BreachesPolicies::SendDeviseNotification
notify the user with an email if there are any breaches
Public Instance Methods
call(user, breaches)
click to toggle source
# 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