Add devise
This commit is contained in:
13
app/models/user.rb
Normal file
13
app/models/user.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
class User < ApplicationRecord
|
||||
# Include default devise modules. Others available are:
|
||||
# :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
|
||||
devise :database_authenticatable, :registerable, :rememberable
|
||||
|
||||
def email_required?
|
||||
false
|
||||
end
|
||||
|
||||
def email_changed?
|
||||
false
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user