lib/datacite/mapping/geo_location_polygon.rb in datacite-mapping-0.4.1 vs lib/datacite/mapping/geo_location_polygon.rb in datacite-mapping-0.5.0
- old
+ new
@@ -23,10 +23,10 @@
def points=(value)
@points = value || []
end
def <=>(other)
- return nil unless other.class == self.class
+ return nil unless other.instance_of?(self.class)
points <=> other.points
end
def hash