Class: VirtualUser

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/virtual_user.rb

Overview

These are the actual email addresses with passwords

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#new_passwordObject

Returns the value of attribute new_password.



9
10
11
# File 'app/models/virtual_user.rb', line 9

def new_password
  @new_password
end

Instance Method Details

#password=(value) ⇒ Object

Capture any misplaced password changes



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

def password=(value)
  self.new_password = value
end

#password_changing?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'app/models/virtual_user.rb', line 19

def password_changing?
  !new_password.blank?
end