lib/nanoc/base/entities/document.rb in nanoc-4.0.0 vs lib/nanoc/base/entities/document.rb in nanoc-4.0.1
- old
+ new
@@ -42,15 +42,12 @@
def hash
self.class.hash ^ identifier.hash
end
- def eql?(other)
- self.class == other.class && identifier == other.identifier
- end
-
def ==(other)
- self.eql?(other)
+ other.respond_to?(:identifier) && identifier == other.identifier
end
+ alias_method :eql?, :==
end
end
end