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/associations
Daniel Colson 6928950def Avoid passing unnecessary arguments to relation
Most of the time the table and predicate_builder
passed to Relation.new are exactly the
arel_table and predicate builder of the
given klass. This uses klass.arel_table
and klass.predicate_builder as the defaults,
so we don't have to pass them in most cases.

This does change the signaure of both Relation and
AssocationRelation. Are we ok with that?
2018-01-24 16:49:35 -05:00
..
builder Remove passing argument to singular and collection association readers 2018-01-05 08:31:57 +09:00
join_dependency [Active Record] require => require_relative 2017-10-21 22:48:27 +09:00
preloader Remove useless preloader classes 2017-11-10 18:27:16 +09:00
alias_tracker.rb Don't pass garbage args to alias tracker 2018-01-14 06:50:25 +09:00
association.rb Avoid passing unnecessary arguments to relation 2018-01-24 16:49:35 -05:00
association_scope.rb Decouple building AliasTracker from JoinDependency 2017-10-08 22:12:42 +09:00
belongs_to_association.rb Bugfix foreign key replacement in inverse association 2017-12-27 15:58:09 +02:00
belongs_to_polymorphic_association.rb Bugfix foreign key replacement in inverse association 2017-12-27 15:58:09 +02:00
collection_association.rb Remove association_primary_key_type from AssociationReflection and ThroughReflection 2018-01-01 05:26:35 +09:00
collection_proxy.rb Avoid passing unnecessary arguments to relation 2018-01-24 16:49:35 -05:00
foreign_association.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
has_many_association.rb Merge pull request #27561 from fishbrain/count-all-in-has-many-association 2018-01-03 05:44:11 +09:00
has_many_through_association.rb Fix building has_one through record 2018-01-23 05:23:32 +09:00
has_one_association.rb Fix broken doc for Active Record [ci skip] 2017-08-25 15:21:00 +09:00
has_one_through_association.rb Fix building has_one through record 2018-01-23 05:23:32 +09:00
join_dependency.rb Joined tables in association scope doesn't use the same aliases with the parent relation's aliases 2017-10-09 16:06:04 +09:00
preloader.rb Bring back passing single record support for Preloader 2018-01-10 07:08:42 +09:00
singular_association.rb Passing klass to StatementCache.new 2017-08-04 02:27:50 +09:00
through_association.rb Fix building has_one through record 2018-01-23 05:23:32 +09:00