aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@github.com>2019-02-05 16:41:43 -0800
committerGitHub <noreply@github.com>2019-02-05 16:41:43 -0800
commit9483cdee0a3ed9c686e338f079b0e369597b1211 (patch)
tree09b312964b87fb8237e45e7e6bd1703e9f0bafcc /activerecord
parent8d06c108c7af1e9a5db9f6d3c79fc5584cc3784e (diff)
parent24b068bea13e8f91397b3440494f0a5326f80882 (diff)
downloadrails-9483cdee0a3ed9c686e338f079b0e369597b1211.tar.gz
rails-9483cdee0a3ed9c686e338f079b0e369597b1211.tar.bz2
rails-9483cdee0a3ed9c686e338f079b0e369597b1211.zip
Merge pull request #35171 from rails/speed-up-partials
Speed up partial rendering by caching "variable" calculation
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/railties/collection_cache_association_loading.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/railties/collection_cache_association_loading.rb b/activerecord/lib/active_record/railties/collection_cache_association_loading.rb
index dfaac4eefb..d57680aaaa 100644
--- a/activerecord/lib/active_record/railties/collection_cache_association_loading.rb
+++ b/activerecord/lib/active_record/railties/collection_cache_association_loading.rb
@@ -3,7 +3,7 @@
module ActiveRecord
module Railties # :nodoc:
module CollectionCacheAssociationLoading #:nodoc:
- def setup(context, options, block)
+ def setup(context, options, as, block)
@relation = relation_from_options(options)
super