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

Fix issue with private kernel methods and collection associations #6134

Conversation

carlosantoniodasilva
Copy link
Member

Change CollectionProxy#method_missing to use scoped.public_send, to avoid a
problem described in issue #2508 when trying to use class methods with names
like "open", that clash with private kernel methods. Also changed the dynamic
matcher instantiator to send straight to scoped, to avoid another roundtrip
to method_missing.

…oses rails#2508

Change CollectionProxy#method_missing to use scoped.public_send, to
avoid a problem described in issue rails#2508 when trying to use class
methods with names like "open", that clash with private kernel methods.
Also changed the dynamic matcher instantiator to send straight to
scoped, to avoid another roundtrip to method_missing.
@carlosantoniodasilva
Copy link
Member Author

@jonleighton can you take a look on this one, if I'm not missing anything? Thanks.

jonleighton added a commit that referenced this pull request May 3, 2012
…-private-methods

Fix issue with private kernel methods and collection associations
@jonleighton jonleighton merged commit 3e54179 into rails:master May 3, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants