Module: SimplePasswordAuthentication::ModelMethods::User::Behavior
- Defined in:
- lib/simple_password_authentication/model_methods.rb
Class Method Summary collapse
Class Method Details
.included(model_class) ⇒ Object
69 70 71 72 73 |
# File 'lib/simple_password_authentication/model_methods.rb', line 69 def self.included(model_class) model_class.validates_presence_of :username, :hashed_password model_class.validates_confirmation_of :password model_class.validates_uniqueness_of :username end |