Class: ActiveRecord::Base
- Inherits:
-
Object
- Object
- ActiveRecord::Base
- 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, = {}, &block) after_initialize ExtendAttribute.new(attr, , block) after_find ExtendAttribute.new(attr, , block) end |