mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
3ef8d53685
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. |
||
---|---|---|
.. | ||
predicate_builder | ||
batches.rb | ||
calculations.rb | ||
delegation.rb | ||
finder_methods.rb | ||
merger.rb | ||
predicate_builder.rb | ||
query_methods.rb | ||
spawn_methods.rb |