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

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  && 
      validates_length_of , 
      validates_format_of , 
      validates_uniqueness_of , 
    end
  end
end