Module: ActiveRecord::Callbacks::ClassMethods
- Defined in:
- lib/active_record/callbacks.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#instantiate_with_callbacks(record) ⇒ Object
203 204 205 206 207 208 209 210 211 212 213 214 215 |
# File 'lib/active_record/callbacks.rb', line 203 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 |