1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib/active_record/relation
eileencodes 3ef8d53685 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.
2014-06-03 21:56:09 -04:00
..
predicate_builder Allow empty arrays in where predicates 2014-05-26 15:12:39 -07:00
batches.rb Return sized enumerator from Batches#find_each 2014-02-05 16:53:02 -05:00
calculations.rb reuse available belongs_to? method 2014-06-03 21:56:09 -04:00
delegation.rb Put back Relation#join method as a delegate to Array 2014-05-05 16:45:16 +03:00
finder_methods.rb WIP: pass existing joins to construct_join_dependency 2014-05-16 15:55:44 -04:00
merger.rb Make filter_binds filter out symbols that are equal to strings 2014-05-14 16:18:42 -07:00
predicate_builder.rb Merge pull request #15210 from arthurnn/fix_hbtm_reflection 2014-05-24 14:55:20 -04:00
query_methods.rb Remove duplicated parameter check on #where! 2014-05-23 23:53:00 +03:00
spawn_methods.rb where needs to bring the bind params when creating a new relation 2014-01-14 12:01:57 -08:00