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

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



11
12
13
14
15
# File 'lib/authlogic/acts_as_authentic/email.rb', line 11

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