Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Support after_ callbacks #14

Open
DaveSanders opened this Issue · 0 comments

1 participant

@DaveSanders

Need to eventually be able to support this feature from FactoryGirl:

http://robots.thoughtbot.com/post/254496652/aint-no-calla-back-girl

One pattern that I use in rails (good or bad, I don't know) is I'll "default" associations if they haven't been filled in during create. So if I create an "Employee" object and don't specify an associated "Manager" object during creation, then the after_create will see that there is no Manager, and create one via an associated factory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.