|
@@ -4,6 +4,8 @@ class User < ApplicationRecord
|
|
|
devise :masqueradable, :database_authenticatable, :registerable,
|
|
|
:recoverable, :rememberable, :trackable, :validatable
|
|
|
|
|
|
+ validates :first_name, :last_name, presence: true
|
|
|
+
|
|
|
def name
|
|
|
"#{first_name} #{last_name}"
|
|
|
end
|