lib/rubiks/nodes/measure.rb in rubiks-0.0.5 vs lib/rubiks/nodes/measure.rb in rubiks-0.0.6
- old
+ new
@@ -9,10 +9,10 @@
validates :aggregator_present
def self.new_from_hash(hash={})
new_instance = new
- return new_instance.from_hash(hash)
+ return new_instance.from_hash(hash.deep_dup)
end
def from_hash(working_hash)
return self if working_hash.nil?
working_hash.stringify_keys!