2
0

2 Revīzijas 78fcac9a1f ... ef810c8e03

Autors SHA1 Ziņojums Datums
  ANX ef810c8e03 fix: readme 6 gadi atpakaļ
  ANX 78fcac9a1f fix: readme 6 gadi atpakaļ
2 mainītis faili ar 1 papildinājumiem un 4 dzēšanām
  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