Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow for afterMake callbacks in named definitions #79

Closed
danielspaniel opened this issue Apr 30, 2015 · 1 comment
Closed

allow for afterMake callbacks in named definitions #79

danielspaniel opened this issue Apr 30, 2015 · 1 comment

Comments

@danielspaniel
Copy link
Collaborator

Currently you can use afterMake on a model definition .. which will apply globally to all models of that type that are made through FactoryGuy.make. Would be nice to have afterMake also to be declared in named definitions which would take precedence or perhaps override? global afterMake ( if it exists )

@danielspaniel
Copy link
Collaborator Author

seems like afterMake is not actually such a great idea because model's 'onload' is called before the afterMake is finished which is not ideal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant