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

Ensure we always define attribute methods #15689

Merged
merged 1 commit into from
Jun 13, 2014

Conversation

sgrif
Copy link
Contributor

@sgrif sgrif commented Jun 13, 2014

Currently we rely on method_missing, which doesn't always get triggered under the right circumstances.

matthewd added a commit that referenced this pull request Jun 13, 2014
Ensure we always define attribute methods
@matthewd matthewd merged commit 584498a into rails:master Jun 13, 2014
@rafaelfranca
Copy link
Member

If we are always defining we still need to rely on method_missing?

@sgrif
Copy link
Contributor Author

sgrif commented Jun 13, 2014

Going to look into it, I don't think we do.
On Jun 13, 2014 1:17 PM, "Rafael Mendonça França" notifications@github.com
wrote:

If we are always defining we still need to rely on method_missing?


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

@matthewd
Copy link
Member

Don't we still need it for non-column entries in the select list?

@matthewd
Copy link
Member

Oh, right.. method_missing shouldn't need to call define_attribute_methods any more.

@sgrif sgrif deleted the sg-attribute-methods branch June 13, 2014 19:32
@sgrif
Copy link
Contributor Author

sgrif commented Jun 13, 2014

The entire AR definition can go away. Non-columns get handled at AM.

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.

None yet

3 participants