2
0

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