diff --git a/lib/dm-core/resource.rb b/lib/dm-core/resource.rb
index <HASH>..<HASH> 100644
--- a/lib/dm-core/resource.rb
+++ b/lib/dm-core/resource.rb
@@ -140,7 +140,7 @@ module DataMapper
         return true
       end
 
-      unless model.equal?(other.class)
+      unless self.class.equal?(other.class)
         return false
       end
Compare resource classes instead of models

* Right now are the same thing, but may not always be the same