Class: ActiveRecord::Base

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

Defined Under Namespace

Classes: ExtendAttribute

Class Method Summary collapse

Class Method Details

.extend_attribute(attr, options = {}, &block) ⇒ Object



7
8
9
10
# File 'lib/extended_attributes.rb', line 7

def extend_attribute(attr, options = {}, &block)
  after_initialize ExtendAttribute.new(attr, options, block)
  after_find       ExtendAttribute.new(attr, options, block)
end