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 <HASH>..<HASH> 100644
--- a/activerecord/lib/active_record/railties/collection_cache_association_loading.rb
+++ b/activerecord/lib/active_record/railties/collection_cache_association_loading.rb
@@ -8,12 +8,12 @@ module ActiveRecord
 
         return super unless options[:cached]
 
-        @relation = relation_from_options(**options)
+        @relation = relation_from_options(options[:partial], options[:collection])
 
         super
       end
 
-      def relation_from_options(cached: nil, partial: nil, collection: nil, **_)
+      def relation_from_options(partial, collection)
         relation = partial if partial.is_a?(ActiveRecord::Relation)
         relation ||= collection if collection.is_a?(ActiveRecord::Relation)
Remove hash deconstruction

I don't think this hash deconstruction buys us much in terms of
readability.  We only need two parameters, the rest are ignored, and on
top of that we have to allocate a hash.  Convert to positional
parameters instead.