Module: Authentication::Logic::ActsAsAuthentic::MagicColumns
- Defined in:
- lib/auth/logic/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. Authentication::Logic 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
12 13 14 15 16 |
# File 'lib/auth/logic/acts_as_authentic/magic_columns.rb', line 12 def self.included(klass) klass.class_eval do add_acts_as_authentic_module(Methods) end end |