lib/active_merchant/country.rb in activemerchant-1.44.1 vs lib/active_merchant/country.rb in activemerchant-1.45.0

- old
+ new

@@ -45,11 +45,16 @@ def code(format) @codes.detect{|c| c.format == format} end def ==(other) - (@name == other.name) + if other.class == ActiveMerchant::Country + (@name == other.name) + else + super + end end + alias eql? == def hash @name.hash end