lib/hashie_mappy.rb in hashie_mappy-0.4.1 vs lib/hashie_mappy.rb in hashie_mappy-0.4.2
- old
+ new
@@ -20,10 +20,10 @@
self.after = block
end
def normalize(input_hash)
input_hash = convert_to_hash(input_hash) unless input_hash.is_a?(Hash)
- input_hash = input_hash.clone.deep_stringify_keys!
+ input_hash = input_hash.with_indifferent_access
output = normalize_hash(self.target_map, input_hash) if input_hash.keys.any?
output = after.call(input_hash, output) if after
output.with_indifferent_access
end
\ No newline at end of file