Methods

Files

Merb::Authentication::Mixins::SaltedUser::SQ3Validations

Public Instance Methods

validate() click to toggle source
# File lib/merb-auth-more/mixins/salted_user/sq_salted_user.rb, line 15
def validate
  validates_presence(:password) if password_required?
  validates_presence(:password_confirmation) if password_required?
  errors.add(:password, "Passwords are not the same") if password != password_confirmation
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.