No commit activity in last 3 years
No release in over 3 years
Hooks to run some code around notification events for Devise
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 3.0.0
~> 3.2.3
 Project Readme

devise-hookable-notifications

Hook email send events, such as :unlock_instructions, perhaps to send another email of your own or whatever you want, without having to mess around with the actions themselves.

class User < ActiveRecord::Base
  devise :database_authenticatable, :lockable, :hookable_notifications

  after_devise_notification :unlock_instructions, perform: ->(user) {
    AdminMailer.activity_notice(user, 'Account Locked').deliver }

  # The rest of your secret sauce ..
end

TODO

  • As needed, add support for a before callback.