Sha256: 760a4dc6075960439c14254e60d7e4ce2f1370ba1e5b10be2b4f9a3646799f3a

Contents?: true

Size: 265 Bytes

Versions: 10

Compression:

Stored size: 265 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

10 entries across 10 versions & 1 rubygems

Version Path
authenticate-0.7.3 lib/authenticate/callbacks/trackable.rb
authenticate-0.7.2 lib/authenticate/callbacks/trackable.rb
authenticate-0.7.1 lib/authenticate/callbacks/trackable.rb
authenticate-0.7.0 lib/authenticate/callbacks/trackable.rb
authenticate-0.6.1 lib/authenticate/callbacks/trackable.rb
authenticate-0.6.0 lib/authenticate/callbacks/trackable.rb
authenticate-0.5.0 lib/authenticate/callbacks/trackable.rb
authenticate-0.4.0 lib/authenticate/callbacks/trackable.rb
authenticate-0.3.3 lib/authenticate/callbacks/trackable.rb
authenticate-0.3.2 lib/authenticate/callbacks/trackable.rb