Skip to content

Conversation

ydah
Copy link
Member

@ydah ydah commented Oct 6, 2025

Fixes: #105


Before submitting the PR make sure the following are checked:

  • Feature branch is up-to-date with master (if not - rebase it).
  • Squashed related commits together.
  • Added tests.
  • Updated documentation.
  • Added an entry to the CHANGELOG.md if the new code introduces user-observable changes.
  • The build (bundle exec rake) passes (be sure to run this locally, since it may produce updated documentation that you will need to commit).

@ydah ydah requested a review from a team as a code owner October 6, 2025 03:27
end

def collect_trait_arguments(node)
node.arguments[1..].reject(&:hash_type?)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will the ‘association’ accept the “last hash argument” in a variable or from a method call?
Won’t we attempt to use it as a trait?
Do we have a way to detect if it’s an options hash or a trait if it’s an lvar or a method call?

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.

FactoryBot/AssociationStyle autocorrection is wrong when the trait is not a symbol literal

2 participants