2 Commits 78fcac9a1f ... ef810c8e03

Author SHA1 Message Date
  ANX ef810c8e03 fix: readme 5 years ago
  ANX 78fcac9a1f fix: readme 5 years ago
2 changed files with 1 additions and 4 deletions
  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