class BackOffice::Password
Attributes
email[RW]
plaintext[RW]
plaintext_confirmation[RW]
Public Instance Methods
update(attrs)
click to toggle source
# File lib/back_office/password.rb, line 9 def update(attrs) self.plaintext = attrs[:plaintext] self.plaintext_confirmation = attrs[:plaintext_confirmation] if valid?(:update) user.update(password: plaintext) true end end
user()
click to toggle source
# File lib/back_office/password.rb, line 19 def user User.find_by(email: email) if email end