From 3f27aa8cdf8c3c7f36d630f0241854f712e4c937 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Thu, 5 Sep 2019 19:01:12 +0900 Subject: [PATCH] These `options` are not defined as keyword arguments Fixes Ruby 2.6 warnings --- activesupport/lib/active_support/cache.rb | 4 ++-- .../lib/active_support/cache/strategy/local_cache.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/activesupport/lib/active_support/cache.rb b/activesupport/lib/active_support/cache.rb index a1bc764804..2d45279a19 100644 --- a/activesupport/lib/active_support/cache.rb +++ b/activesupport/lib/active_support/cache.rb @@ -327,7 +327,7 @@ module ActiveSupport end if entry - get_entry_value(entry, name, **options) + get_entry_value(entry, name, options) else save_block_result_to_cache(name, **options) { |_name| yield _name } end @@ -448,7 +448,7 @@ module ActiveSupport payload[:hits] = reads.keys payload[:super_operation] = :fetch_multi - write_multi(writes, **options) + write_multi(writes, options) ordered end diff --git a/activesupport/lib/active_support/cache/strategy/local_cache.rb b/activesupport/lib/active_support/cache/strategy/local_cache.rb index 996470517e..0147873685 100644 --- a/activesupport/lib/active_support/cache/strategy/local_cache.rb +++ b/activesupport/lib/active_support/cache/strategy/local_cache.rb @@ -162,7 +162,7 @@ module ActiveSupport cache = local_cache cache.mute do if value - cache.write(name, value, **options) + cache.write(name, value, options) else cache.delete(name, **options) end