Skip to content

Commit

Permalink
Inheritance is our friend
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaclayton committed Nov 23, 2011
1 parent d563b94 commit 557cce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/factory_girl/proxy/create.rb
Expand Up @@ -2,7 +2,7 @@ module FactoryGirl
class Proxy #:nodoc:
class Create < Build #:nodoc:
def result(to_create)
run_callbacks(:after_build)
super
if to_create
to_create.call(@instance)
else
Expand Down

0 comments on commit 557cce6

Please sign in to comment.