Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve value_object's #hash uniformity
Array#hash is designed to be uniform, unlike reduce(:^).hash class Point include Virtus.value_object values do attribute :x, Integer attribute :y, Integer end end Point.new(x: 1, y: 1).hash == Point.new.hash # was true Point.new(x: 1).hash == Point.new(y: 1).hash # was true
- Loading branch information