-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Namespaced models and deprecation warnings by class lookup #1130
Comments
Could anyone pay attention to this issue, please? |
@soxat after posting here, i noticed that this repo doesn't have very expedient replies so i tried stackoverflow to see if anyone could help there. here's that post: https://stackoverflow.com/questions/50437961/factorybot-namespaced-models-without-class-name in FactoryBot 4.10 its viable to add the class name as a string, so instead of |
@michaelfich Thanks! |
Thanks for the help. I am going to leave this issue open because there is definitely room for documentation improvements here. |
I added some documentation for using strings instead of classes in ef5c4ba |
I have models which are namespaced such as this:
When creating factories for these models, they were set up in the following way:
This produces the following deprecation warning:
Is there a format for writing a symbol to name these factories such that I do not need to use the class name to comply with the deprecation warning?
The text was updated successfully, but these errors were encountered: