mirror of
https://github.com/thoughtbot/factory_bot.git
synced 2022-11-09 11:43:51 -05:00
14 lines
256 B
Ruby
14 lines
256 B
Ruby
module FactoryGirl
|
|
class Proxy #:nodoc:
|
|
class Create < Build #:nodoc:
|
|
def result
|
|
run_callbacks(:after_build)
|
|
|
|
@to_create[result_instance]
|
|
|
|
run_callbacks(:after_create)
|
|
result_instance
|
|
end
|
|
end
|
|
end
|
|
end
|