From 922f221b09db0bf5ef23575c34032e621be44418 Mon Sep 17 00:00:00 2001
From: Konstantin Haase <konstantin.mailinglists@googlemail.com>
Date: Wed, 22 Apr 2015 16:24:26 +0200
Subject: [PATCH] v3: fix Model#===

---
 lib/travis/api/v3/model.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/travis/api/v3/model.rb b/lib/travis/api/v3/model.rb
index 45d70920..f37283df 100644
--- a/lib/travis/api/v3/model.rb
+++ b/lib/travis/api/v3/model.rb
@@ -4,7 +4,7 @@ module Travis::API::V3
     self.abstract_class = true
 
     def self.===(other)
-      super or other.class.parent == Models
+      super or (self == Model and other.class.parent == Models)
     end
   end
 end