Class: Factory::Proxy::Create

Inherits:
Build show all
Defined in:
lib/factory_girl/proxy/create.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from Factory::Proxy

#callbacks

Instance Method Summary collapse

Methods inherited from Build

#associate, #association, #get, #initialize, #set

Methods inherited from Factory::Proxy

#add_callback, #associate, #association, #get, #initialize, #method_missing, #run_callbacks, #set

Constructor Details

This class inherits a constructor from Factory::Proxy::Build

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Factory::Proxy

Instance Method Details

#resultObject



4
5
6
7
8
9
# File 'lib/factory_girl/proxy/create.rb', line 4

def result
  run_callbacks(:after_build)
  @instance.save!
  run_callbacks(:after_create)
  @instance
end