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 “Magic Columns” in ‘Session::Base` 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



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

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