lib/active_memoize/cache.rb in active_memoize-1.0.1 vs lib/active_memoize/cache.rb in active_memoize-1.0.2

- old
+ new

@@ -85,9 +85,11 @@ # rubocop:disable Metrics/LineLength def caller_locals(block) local_vars = block.binding.local_variables local_vars = local_vars.flat_map { |name| [name, block.binding.local_variable_get(name)].join('=') } + return if local_vars.empty? + local_vars.join(',') end # rubocop:enable Metrics/LineLength def caller_method