lib/volt/models/model_hash_behaviour.rb in volt-0.8.27.beta2 vs lib/volt/models/model_hash_behaviour.rb in volt-0.8.27.beta3

- old
+ new

@@ -27,11 +27,11 @@ def keys @size_dep.depend keys = [] - each_pair do |k,v| + each_pair do |k, v| keys << k end keys end @@ -73,12 +73,12 @@ size @array.each(&block) end def each_pair - @attributes.each_pair do |k,v| - yield(k,v) unless v.is_a?(Model) && v.nil? + @attributes.each_pair do |k, v| + yield(k, v) unless v.is_a?(Model) && v.nil? end end def key?(key) @attributes && @attributes.key?(key) @@ -96,8 +96,7 @@ hash[key] = deep_unwrap(value) end hash end end - end end