rails/rails — pull request #15499 by eileencodes (2014-06-04 02:04:44+00:00)
Title: reuse available belongs_to? method

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.