diff options
author | Vipul A M <vipulnsward@gmail.com> | 2016-04-16 21:06:35 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2016-04-17 11:23:30 +0530 |
commit | 58fc343eaad9275add7761f8464b8811fbe730f7 (patch) | |
tree | d8a9f07913307f920d7fe916fbda85018d648acc /activesupport/lib | |
parent | 39e087cbf5628ecc351fc86a3a1e320be193bf29 (diff) | |
download | rails-58fc343eaad9275add7761f8464b8811fbe730f7.tar.gz rails-58fc343eaad9275add7761f8464b8811fbe730f7.tar.bz2 rails-58fc343eaad9275add7761f8464b8811fbe730f7.zip |
Stop passing unused payloads to instrumentation block in cache
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/cache.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/cache.rb b/activesupport/lib/active_support/cache.rb index 1c63e8a93f..85f462a1b1 100644 --- a/activesupport/lib/active_support/cache.rb +++ b/activesupport/lib/active_support/cache.rb @@ -575,12 +575,12 @@ module ActiveSupport end def get_entry_value(entry, name, options) - instrument(:fetch_hit, name, options) { |payload| } + instrument(:fetch_hit, name, options) { } entry.value end def save_block_result_to_cache(name, options) - result = instrument(:generate, name, options) do |payload| + result = instrument(:generate, name, options) do yield(name) end |