lib/sapience/base.rb in sapience-2.5.4 vs lib/sapience/base.rb in sapience-2.6.0

- old
+ new

@@ -235,10 +235,10 @@ if block_given? && (result = yield) if result.is_a?(String) message = message.nil? ? result : "#{message} -- #{result}" elsif message.nil? && result.is_a?(Hash) message = result - elsif payload && payload.respond_to?(:merge) + elsif payload && payload.respond_to?(:merge) # rubocop: disable Style/SafeNavigation payload.merge(result) else payload = result end end