Module: Authlogic::ActsAsAuthentic::MagicColumns

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

Overview

Magic columns are like ActiveRecord’s created_at and updated_at columns. They are “magically” maintained for you. Authlogic has the same thing, but these are maintained on the session side. Please see Authlogic::Session::MagicColumns for more details. This module merely adds validations for the magic columns if they exist.

Defined Under Namespace

Modules: Methods

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



7
8
9
10
11
# File 'lib/authlogic/acts_as_authentic/magic_columns.rb', line 7

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