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



11
12
13
# File 'app/models/fastui/m_person.rb', line 11

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

#password=(new_password) ⇒ Object



15
16
17
# File 'app/models/fastui/m_person.rb', line 15

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