document_hash 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/document_hash/core.rb +9 -4
- data/lib/document_hash/version.rb +1 -1
- metadata +1 -1
data/lib/document_hash/core.rb
CHANGED
@@ -47,10 +47,15 @@ module DocumentHash
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def merge! other
|
50
|
-
self.class.symbolize_keys other
|
51
|
-
other = Hash[ other.collect{ |k, v| [ k, execute_before_change_callback(k,v) ] } ]
|
52
|
-
super other
|
53
|
-
other.each { |k, v| changed_key k,v }
|
50
|
+
# self.class.symbolize_keys other
|
51
|
+
# other = Hash[ other.collect{ |k, v| [ k, execute_before_change_callback(k,v) ] } ]
|
52
|
+
# super other
|
53
|
+
# other.each { |k, v| changed_key k,v }
|
54
|
+
|
55
|
+
other.each { |k,v| self[k] = v }
|
56
|
+
end
|
57
|
+
|
58
|
+
def deep_merge! other
|
54
59
|
end
|
55
60
|
|
56
61
|
private
|