Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trackable not working? #341

Open
josephsiefers opened this issue Oct 15, 2018 · 0 comments
Open

Trackable not working? #341

josephsiefers opened this issue Oct 15, 2018 · 0 comments

Comments

@josephsiefers
Copy link

josephsiefers commented Oct 15, 2018

We're having a great experience with the library so far, but noticed a puzzling issue with trackable. In the sample initializer, I noticed and configured the following:

SimpleTokenAuthentication.configure do |config|
  # Configure the Devise trackable strategy integration.
  #
  # If true, tracking is disabled for token authentication: signing in through
  # token authentication won't modify the Devise trackable statistics.
  #
  # If false, given Devise trackable is configured for the relevant model,
  # then signing in through token authentication will be tracked as any other sign in.
  #
  config.skip_devise_trackable = false
end

While using tokens, I'm not seeing any changes to devise trackable module attributes (e.g., sign_in_count, etc). My devise model is configured as follows:

class User < ActiveRecord::Base
  acts_as_token_authenticatable

  devise :database_authenticatable, :registerable, :confirmable,
         :recoverable, :rememberable, :trackable, :validatable, :invitable
  end
end

Any idea as to what the cause might be?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant