Module: Authlogic::ActsAsAuthentic::Email

Defined in:
lib/authlogic/acts_as_authentic/email.rb

Overview

Sometimes models won't have an explicit “login” or “username” field. Instead they want to use the email field. In this case, authlogic provides validations to make sure the email submited is actually a valid email. Don't worry, if you do have a login or username field, Authlogic will still validate your email field. One less thing you have to worry about.

Defined Under Namespace

Modules: Config, Methods

Class Method Summary (collapse)

Class Method Details

+ (Object) included(klass)



8
9
10
11
12
13
# File 'lib/authlogic/acts_as_authentic/email.rb', line 8

def self.included(klass)
  klass.class_eval do
    extend Config
    add_acts_as_authentic_module(Methods)
  end
end