Module: Authentication::Logic::ActsAsAuthentic::Email

Defined in:
lib/auth/logic/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, auth-logic 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, Authentication::Logic 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



12
13
14
15
16
# File 'lib/auth/logic/acts_as_authentic/email.rb', line 12

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