From e0d8dfa8b0c1387cc369fcc389ecb1d18f1726d5 Mon Sep 17 00:00:00 2001 From: sugiken Date: Fri, 31 Jan 2020 05:35:31 +0900 Subject: [PATCH] Remove Trackable option from generator (#1362) --- lib/generators/devise_token_auth/install_mongoid_generator.rb | 4 ++-- lib/generators/devise_token_auth/templates/user.rb.erb | 4 ++-- .../devise_token_auth/templates/user_mongoid.rb.erb | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/generators/devise_token_auth/install_mongoid_generator.rb b/lib/generators/devise_token_auth/install_mongoid_generator.rb index 9f45db3e5..dba05e900 100644 --- a/lib/generators/devise_token_auth/install_mongoid_generator.rb +++ b/lib/generators/devise_token_auth/install_mongoid_generator.rb @@ -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 }) diff --git a/lib/generators/devise_token_auth/templates/user.rb.erb b/lib/generators/devise_token_auth/templates/user.rb.erb index a6cb47a23..f5ba25e34 100644 --- a/lib/generators/devise_token_auth/templates/user.rb.erb +++ b/lib/generators/devise_token_auth/templates/user.rb.erb @@ -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 diff --git a/lib/generators/devise_token_auth/templates/user_mongoid.rb.erb b/lib/generators/devise_token_auth/templates/user_mongoid.rb.erb index 761ca527f..08c463762 100644 --- a/lib/generators/devise_token_auth/templates/user_mongoid.rb.erb +++ b/lib/generators/devise_token_auth/templates/user_mongoid.rb.erb @@ -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 })