2 次代码提交 78fcac9a1f ... ef810c8e03

作者 SHA1 备注 提交日期
  ANX ef810c8e03 fix: readme 6 年之前
  ANX 78fcac9a1f fix: readme 6 年之前
共有 2 个文件被更改,包括 1 次插入4 次删除
  1. 1 1
      app/models/user.rb
  2. 0 3
      template.rb

+ 1 - 1
app/models/user.rb

@@ -1,7 +1,7 @@
 class User < ApplicationRecord
   # Include default devise modules. Others available are:
   # :confirmable, :lockable, :timeoutable and :omniauthable
-  devise :masqueradable, :database_authenticatable, :registerable, :recoverable, :rememberable, :validatable, :omniauthable
+  devise :database_authenticatable, :registerable, :recoverable, :rememberable, :validatable, :omniauthable
 
   has_person_name
 

+ 0 - 3
template.rb

@@ -82,9 +82,6 @@ def add_users
       /  # config.secret_key = .+/,
       "  config.secret_key = Rails.application.credentials.secret_key_base"
   end
-
-  # Add Devise masqueradable to users
-  inject_into_file("app/models/user.rb", "omniauthable, :masqueradable, :", after: "devise :")
 end
 
 def add_bootstrap