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

reuse available belongs_to? method #15499

Merged

Conversation

eileencodes
Copy link
Member

Reflection has a belongs_to? method. Instead of checking for
macro == :belongs_to throughout the source reuse existing
method.

I also bumped foreign_key_present? method onto on line because
the belongs_to? makes it shorter than other longer lines in
the same class.

Reflection has a `belongs_to?` method. Instead of checking for
`macro == :belongs_to` throughout the source reuse existing
method.

I also bumped `foreign_key_present?` method onto on line because
the `belongs_to?` makes it shorter than other longer lines in
the same class.
rafaelfranca added a commit that referenced this pull request Jun 4, 2014
…-method

reuse available belongs_to? method
@rafaelfranca rafaelfranca merged commit e4efa18 into rails:master Jun 4, 2014
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

2 participants