Replies: 1 comment
-
Yeah, that's a good idea. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! So I'm trying to do the following:
app/components/component_name
FactoryBot::Syntax::Methods
inApplicationViewComponentPreview
so I can callbuild
instead ofFactoryBot.build
The result is that when my app directory is eager loaded in Production it gets all upset that FactoryBot::Syntax::Methods doesn't exist. To fix this I put together an initializer looks a lil something like this:
I think this is a pretty good idea to include something like this here so other folks can avoid this particular dumb trap.
Beta Was this translation helpful? Give feedback.
All reactions