Class: DoorMat::SignUp

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model
Defined in:
app/models/door_mat/sign_up.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#emailObject

Returns the value of attribute email.



6
7
8
# File 'app/models/door_mat/sign_up.rb', line 6

def email
  @email
end

#passwordObject

Returns the value of attribute password.



6
7
8
# File 'app/models/door_mat/sign_up.rb', line 6

def password
  @password
end

#password_confirmationObject

Returns the value of attribute password_confirmation.



6
7
8
# File 'app/models/door_mat/sign_up.rb', line 6

def password_confirmation
  @password_confirmation
end

Instance Method Details

#add_generic_error_msgObject



12
13
14
# File 'app/models/door_mat/sign_up.rb', line 12

def add_generic_error_msg
  self.errors[:base] << I18n.t("door_mat.sign_up.failed")
end