Class: ActiveRecord::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/cached_column.rb

Class Method Summary collapse

Class Method Details

.cached_column(column, options = {}, &block) ⇒ Object



27
28
29
# File 'lib/cached_column.rb', line 27

def self.cached_column(column, options = {}, &block)
  before_save CachedColumn.new(column, options, &block)
end