Module: BigRecord::Callbacks::ClassMethods
- Defined in:
- lib/big_record/callbacks.rb
Overview
:nodoc:
Instance Method Summary
Instance Method Details
- (Object) instantiate_with_callbacks(record)
204 205 206 207 208 209 210 211 212 213 214 215 216 |
# File 'lib/big_record/callbacks.rb', line 204 def instantiate_with_callbacks(record) object = instantiate_without_callbacks(record) if object.respond_to_without_attributes?(:after_find) object.send(:callback, :after_find) end if object.respond_to_without_attributes?(:after_initialize) object.send(:callback, :after_initialize) end object end |