1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

These options are not defined as keyword arguments

Fixes Ruby 2.6 warnings
This commit is contained in:
Akira Matsuda 2019-09-05 19:01:12 +09:00
parent c8e7f3ca7b
commit 3f27aa8cdf
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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