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
Ben Woosley c82cc222c7 Reuse the CollectionAssociation#reader proxy cache if the foreign key is present from the start.
When a new record has the necessary information prior to save, we can
avoid busting the cache.

We could simply clear the @proxy on #reset or #reset_scope, but that
would clear the cache more often than necessary.
2015-03-15 17:29:05 -07:00
..
builder Require belongs_to by default. 2015-02-21 23:03:10 +01:00
join_dependency Remove Relation#bind_params 2015-01-27 16:10:03 -07:00
preloader Remove most type related predicates from Column 2015-01-30 11:42:54 -07:00
alias_tracker.rb Move #type_caster to alias tracker initialize 2015-01-02 17:15:31 -05:00
association.rb Doc fix about association hierarchy 2015-03-15 16:48:07 +09:00
association_scope.rb Go through normal where logic in AssociationScope 2015-01-26 15:49:29 -07:00
belongs_to_association.rb Improve consistency of counter caches updating in memory 2015-01-26 12:37:29 -07:00
belongs_to_polymorphic_association.rb
collection_association.rb Reuse the CollectionAssociation#reader proxy cache if the foreign key is present from the start. 2015-03-15 17:29:05 -07:00
collection_proxy.rb Updated documentation of CollectionProxy#clear [ci skip] 2015-03-06 21:53:07 +05:30
foreign_association.rb Share foreign_key_present? implementation in _has_ associations 2014-12-31 00:19:09 +03:00
has_many_association.rb Correct errors in counter cache updating 2015-02-03 13:28:07 -07:00
has_many_through_association.rb Correct errors in counter cache updating 2015-02-03 13:28:07 -07:00
has_one_association.rb Deprecate false as the way to halt AR callbacks 2015-01-02 15:31:56 -08:00
has_one_through_association.rb
join_dependency.rb Merge pull request #16989 from Empact/reload-cache-clear 2015-02-20 17:45:10 -02:00
preloader.rb Don't rely on the internal representation of join values 2015-01-27 11:04:56 -07:00
singular_association.rb Isolate access to .default_scopes in ActiveRecord::Scoping::Default 2015-03-12 01:22:39 -07:00
through_association.rb Doc fix [ci skip] 2015-03-07 04:38:25 +05:30