Class: WardenWatch::Hook
- Inherits:
-
Object
- Object
- WardenWatch::Hook
- Defined in:
- lib/warden_watch/hook.rb
Class Method Summary collapse
Class Method Details
.enable! ⇒ Object
6 7 8 9 10 |
# File 'lib/warden_watch/hook.rb', line 6 def enable! Warden::Manager.after_set_user do |user,auth,opts| WardenWatch::AuthenticationEvent.new(user, auth, opts).track! end end |