-
Notifications
You must be signed in to change notification settings - Fork 63
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
There should be a warning if you specify two properties that share the same predicate. #662
Comments
A predicate can be shared if each term has different |
@jcoyne A few questions.
a) if the have the same "class_name" and different "multiple" - OK
|
Actually I think the class_name difference only applies to associations (belongs_to, has_many). I may have confused that in my head, so it should probably always warn on duplicate predicates regardless of how any other parameters are set. |
@jcoyne I have this note form our IRC chat the other day on which @terrellt brought up "class_name"
Is this why you included it perhaps? I've removed the "class_name" check in my PR but I wonder if this changes things. |
Perhaps. It's not a use case I have, see what @terrellt has to say. |
Would help avoid bugs like this:
Which was caused by title and creator accidentally having the same predicate
The text was updated successfully, but these errors were encountered: