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