Skip to content

Conversation

r7kamura
Copy link
Contributor

@r7kamura r7kamura commented Oct 25, 2022

If we want to specify traits in implicit associations, we have to use :factory option. This is not only a naming problem, but also redundant in implicit style, because when using :factory option, the main factory name must always be specified, so the same name must be written twice.

  user factory: [:user, :trait1, :trait2]
# ^^^^            ^^^^

To resolve this problem, I propose to allow :traits option on implicit associations in this Pull Request.

  user traits: [:trait1, :trait2]

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant