Skip to content
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

Avoid overwriting attributes on different classes #14

Merged
merged 4 commits into from
Dec 28, 2015
Merged

Avoid overwriting attributes on different classes #14

merged 4 commits into from
Dec 28, 2015

Conversation

seckenrode
Copy link
Contributor

If you have the same attribute name in two classes, and it's marked as
an attr_(class|symbol) in one of the classes, this helper currently
sets the attribute as a symbol in both classes.

This leads to unexpected behavior and should be fixed.

@JacobEvelyn

If you have the same attribute name in two classes, and it's marked as
an attr_(class|symbol) in one of the classes, this helper currently
sets the attribute as a symbol in both classes.

This leads to unexpected behavior and should be fixed.
@JacobEvelyn
Copy link
Member

Small comment: could you preserve the comment about why we need to use prepend that you deleted? Otherwise this LGTM.

@seckenrode
Copy link
Contributor Author

This change makes it so this module doesn't have to be prepended anymore.
Did you want me to leave the comment for the internal implementation?

On Mon, Dec 28, 2015, 8:09 AM Jacob Evelyn notifications@github.com wrote:

Assigned #14 #14
to @seckenrode https://github.com/seckenrode.


Reply to this email directly or view it on GitHub
#14 (comment)
.

@JacobEvelyn
Copy link
Member

Yep exactly. It would also be nice, come to think of it, for an explanation of why we need to Module.new rather than use the code as we have it now.

@seckenrode
Copy link
Contributor Author

Updated

@seckenrode seckenrode assigned JacobEvelyn and unassigned seckenrode Dec 28, 2015
@JacobEvelyn
Copy link
Member

Thanks for the changes, and I like the cleanup. This LGTM if tests pass.

seckenrode added a commit that referenced this pull request Dec 28, 2015
Avoid overwriting attributes on different classes
@seckenrode seckenrode merged commit 6adcdcf into panorama-ed:master Dec 28, 2015
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.

2 participants