Skip to content

Commit

Permalink
Remove Trackable option from generator (lynndylanhurley#1362)
Browse files Browse the repository at this point in the history
  • Loading branch information
SugiKent authored Jan 30, 2020
1 parent 8326cc7 commit e0d8dfa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/generators/devise_token_auth/install_mongoid_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ def create_user_model
field :tokens, type: Hash, default: {}
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable and :omniauthable
# :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
:recoverable, :rememberable, :validatable
include DeviseTokenAuth::Concerns::User
index({ uid: 1, provider: 1}, { name: 'uid_provider_index', unique: true, background: true })
Expand Down
4 changes: 2 additions & 2 deletions lib/generators/devise_token_auth/templates/user.rb.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

class <%= user_class %> < ActiveRecord::Base
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable and :omniauthable
# :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
:recoverable, :rememberable, :validatable
include DeviseTokenAuth::Concerns::User
end
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ class <%= user_class %>
field :tokens, type: Hash, default: {}

# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable and :omniauthable
# :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
:recoverable, :rememberable, :validatable
include DeviseTokenAuth::Concerns::User

index({ email: 1 }, { name: 'email_index', unique: true, background: true })
Expand Down

0 comments on commit e0d8dfa

Please sign in to comment.