Class: FactoryGirl::Proxy::Create
- Inherits:
-
Build
- Object
- FactoryGirl::Proxy
- Build
- FactoryGirl::Proxy::Create
- Defined in:
- lib/factory_girl/proxy/create.rb
Overview
:nodoc:
Instance Method Summary collapse
Methods inherited from Build
Methods inherited from FactoryGirl::Proxy
#association, ensure_strategy_exists!
Instance Method Details
#result(attribute_assigner, to_create) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/factory_girl/proxy/create.rb', line 4 def result(attribute_assigner, to_create) attribute_assigner.object.tap do |result_instance| run_callbacks(:after_build, result_instance) to_create[result_instance] run_callbacks(:after_create, result_instance) end end |