module Hashie::Extensions::DeepMerge

def deep_merge(other_hash, &block)

Returns a new hash with +self+ and +other_hash+ merged recursively.
def deep_merge(other_hash, &block)
  copy = _deep_dup(self)
  copy.extend(Hashie::Extensions::DeepMerge) unless copy.respond_to?(:deep_merge!)
  copy.deep_merge!(other_hash, &block)
end