Class: DoorMat::SignUp
- Inherits:
-
Object
- Object
- DoorMat::SignUp
- Includes:
- ActiveModel::Model
- Defined in:
- app/models/door_mat/sign_up.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#password ⇒ Object
Returns the value of attribute password.
-
#password_confirmation ⇒ Object
Returns the value of attribute password_confirmation.
Instance Method Summary collapse
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
6 7 8 |
# File 'app/models/door_mat/sign_up.rb', line 6 def email @email end |
#password ⇒ Object
Returns the value of attribute password.
6 7 8 |
# File 'app/models/door_mat/sign_up.rb', line 6 def password @password end |
#password_confirmation ⇒ Object
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_msg ⇒ Object
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 |