Sha256: cbe5cbcdb61fdbbe720d501f31aaa65f820164452f87bfc9a4e04473b48c418d

Contents?: true

Size: 264 Bytes

Versions: 5

Compression:

Stored size: 264 Bytes

Contents

# Update all standard tracked stats at each authentication.
Authenticate.lifecycle.after_authentication name: 'trackable' do |user, session, options|
  if user && user.respond_to?(:update_tracked_fields!)
    user.update_tracked_fields!(session.request)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
authenticate-0.3.1 lib/authenticate/callbacks/trackable.rb
authenticate-0.3.0 lib/authenticate/callbacks/trackable.rb
authenticate-0.2.3 lib/authenticate/callbacks/trackable.rb
authenticate-0.2.2 lib/authenticate/callbacks/trackable.rb
authenticate-0.2.1 lib/authenticate/callbacks/trackable.rb