-
-
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
Raise error when a trait is self-referencing #1294
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
houndci-bot
reviewed
May 3, 2019
hellosweta
force-pushed
the
ss-self-ref-trait
branch
from
May 4, 2019 00:22
e63896f
to
da5467a
Compare
houndci-bot
reviewed
May 4, 2019
hellosweta
force-pushed
the
ss-self-ref-trait
branch
2 times, most recently
from
May 4, 2019 00:25
b61d2fe
to
628579b
Compare
hellosweta
commented
May 4, 2019
hellosweta
commented
May 4, 2019
aledustet
reviewed
May 7, 2019
hellosweta
changed the title
WIP check if name matches name passed through the block
WIP Fix "Self-referencing association" error for traits #1238
May 10, 2019
hellosweta
force-pushed
the
ss-self-ref-trait
branch
2 times, most recently
from
August 9, 2019 18:29
ab10591
to
cb66970
Compare
hellosweta
force-pushed
the
ss-self-ref-trait
branch
2 times, most recently
from
August 9, 2019 19:58
a8d5729
to
70cc046
Compare
hellosweta
changed the title
WIP Fix "Self-referencing association" error for traits #1238
Raise error when a trait is self-referencing
Aug 9, 2019
odlp
approved these changes
Aug 31, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great 👍
pablobm
approved these changes
Sep 3, 2019
If a new trait is defined with attributes, check if attributes matches the name of the trait. Raise an error if so, to avoid a recursive call to the trait. Co-authored-by: Daniel Colsen <daniel.j.colson@thoughtbot.com> Co-authored-by: Paras Sanghavi <sanghaviparas@gmail.com>
hellosweta
force-pushed
the
ss-self-ref-trait
branch
from
September 10, 2019 23:09
70cc046
to
10e067c
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We want to check if any attributes of a new trait definition matches the name of
the trait. Raise an error if so, to avoid a recursive call to the trait. A fix to:
#1238