lib/timber/current_context.rb in timber-2.6.0.pre.beta2 vs lib/timber/current_context.rb in timber-2.6.0

- old
+ new

@@ -118,16 +118,10 @@ # Snapshots the current context so that you get a moment in time representation of the context, # since the context can change as execution proceeds. Note that individual contexts # should be immutable, and we implement snapshot caching as a result of this assumption. def snapshot - @snapshot ||= begin - snapshot = hash.clone - if snapshot.key?(:custom) - snapshot[:custom] = hash[:custom].clone - end - snapshot - end + @snapshot ||= hash.clone end private # The internal hash that is maintained. Use {#with} and {#add} for hash maintenance. def hash