Module: Authlogic::ActsAsAuthentic::Login::Methods
- Defined in:
- lib/authlogic/acts_as_authentic/login.rb
Overview
All methods relating to the login field
Class Method Summary collapse
-
.included(klass) ⇒ Object
Adds in various validations, modules, etc.
Class Method Details
.included(klass) ⇒ Object
Adds in various validations, modules, etc.
130 131 132 133 134 135 136 137 138 |
# File 'lib/authlogic/acts_as_authentic/login.rb', line 130 def self.included(klass) klass.class_eval do if validate_login_field && login_field validates_length_of login_field, validates_format_of login_field, validates_uniqueness_of login_field, end end end |