diff options
author | Arthur Nogueira Neves <github@arthurnn.com> | 2016-11-04 10:27:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-04 10:27:55 -0400 |
commit | db8b40b7f5bf911fb95f072d54cb146fa349b6b6 (patch) | |
tree | e2ff85789cf836f0a08b11e8a8dc85c8b7993964 | |
parent | 98faa2a6a12e849119b60c72b08a25b03d3c867c (diff) | |
parent | fa5200fc21f6c9a2202d9af29cf0122d98a5d8d8 (diff) | |
download | rails-db8b40b7f5bf911fb95f072d54cb146fa349b6b6.tar.gz rails-db8b40b7f5bf911fb95f072d54cb146fa349b6b6.tar.bz2 rails-db8b40b7f5bf911fb95f072d54cb146fa349b6b6.zip |
Merge pull request #26536 from y-yagi/change_increment_and_decrement_to_public_api
change `MemCacheStore#increment` and `MemCacheStore#decrement` to public API [ci skip]
-rw-r--r-- | activesupport/lib/active_support/cache/mem_cache_store.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/cache/mem_cache_store.rb b/activesupport/lib/active_support/cache/mem_cache_store.rb index cfd5e39bc4..00f4480308 100644 --- a/activesupport/lib/active_support/cache/mem_cache_store.rb +++ b/activesupport/lib/active_support/cache/mem_cache_store.rb @@ -110,7 +110,7 @@ module ActiveSupport # operator and can only be used on values written with the :raw option. # Calling it on a value not stored with :raw will initialize that value # to zero. - def increment(name, amount = 1, options = nil) # :nodoc: + def increment(name, amount = 1, options = nil) options = merged_options(options) instrument(:increment, name, amount: amount) do rescue_error_with nil do @@ -123,7 +123,7 @@ module ActiveSupport # operator and can only be used on values written with the :raw option. # Calling it on a value not stored with :raw will initialize that value # to zero. - def decrement(name, amount = 1, options = nil) # :nodoc: + def decrement(name, amount = 1, options = nil) options = merged_options(options) instrument(:decrement, name, amount: amount) do rescue_error_with nil do |