Sha256: b1f81b14f6000165e9ee6106b37a12e853767fc7b8180f918413f3c9bb3aa1c0
Contents?: true
Size: 370 Bytes
Versions: 1
Compression:
Stored size: 370 Bytes
Contents
# After each sign in: âupdate sign in time, sign in count and sign in IP. # This is only triggered when the user is explicitly set (with set_user) # and on authentication. Authenticate.lifecycle.after_authentication name: 'trackable' do |user, session, options| if user.respond_to?(:update_tracked_fields!) user.update_tracked_fields!(session.request) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
authenticate-0.1.0 | lib/authenticate/callbacks/trackable.rb |