lib/money/currency.rb in shopify-money-0.14.8 vs lib/money/currency.rb in shopify-money-0.15.0
- old
+ new
@@ -48,9 +48,13 @@
def eql?(other)
self.class == other.class && iso_code == other.iso_code
end
+ def hash
+ [ self.class, iso_code ].hash
+ end
+
def compatible?(other)
other.is_a?(NullCurrency) || eql?(other)
end
alias_method :==, :eql?