Class: Fastui::MPerson

Inherits:
MObject
  • Object
show all
Includes:
BCrypt
Defined in:
app/models/fastui/m_person.rb

Instance Method Summary collapse

Methods inherited from MObject

ui

Instance Method Details

#passwordObject



13
14
15
# File 'app/models/fastui/m_person.rb', line 13

def password
  @password ||= Password.new(self.password_digest)
end

#password=(new_password) ⇒ Object



17
18
19
# File 'app/models/fastui/m_person.rb', line 17

def password=(new_password)
  self.password_digest = Password.create(new_password)
end