rails/rails — pull request #15596 by eileencodes (2014-06-09 23:15:16+00:00)
Title: add has_one? method and reuse instead of checking macro

Instead of checking for `macro == :has_one` throughout the codebase create a `has_one?` method to match the `belongs_to?`, `polymorphic?` and other methods.