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:
parent
c8e7f3ca7b
commit
3f27aa8cdf
2 changed files with 3 additions and 3 deletions
|
@ -327,7 +327,7 @@ module ActiveSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
if entry
|
if entry
|
||||||
get_entry_value(entry, name, **options)
|
get_entry_value(entry, name, options)
|
||||||
else
|
else
|
||||||
save_block_result_to_cache(name, **options) { |_name| yield _name }
|
save_block_result_to_cache(name, **options) { |_name| yield _name }
|
||||||
end
|
end
|
||||||
|
@ -448,7 +448,7 @@ module ActiveSupport
|
||||||
payload[:hits] = reads.keys
|
payload[:hits] = reads.keys
|
||||||
payload[:super_operation] = :fetch_multi
|
payload[:super_operation] = :fetch_multi
|
||||||
|
|
||||||
write_multi(writes, **options)
|
write_multi(writes, options)
|
||||||
|
|
||||||
ordered
|
ordered
|
||||||
end
|
end
|
||||||
|
|
|
@ -162,7 +162,7 @@ module ActiveSupport
|
||||||
cache = local_cache
|
cache = local_cache
|
||||||
cache.mute do
|
cache.mute do
|
||||||
if value
|
if value
|
||||||
cache.write(name, value, **options)
|
cache.write(name, value, options)
|
||||||
else
|
else
|
||||||
cache.delete(name, **options)
|
cache.delete(name, **options)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue