v3: fix Model#===
This commit is contained in:
parent
7b5dc7b33d
commit
922f221b09
|
@ -4,7 +4,7 @@ module Travis::API::V3
|
||||||
self.abstract_class = true
|
self.abstract_class = true
|
||||||
|
|
||||||
def self.===(other)
|
def self.===(other)
|
||||||
super or other.class.parent == Models
|
super or (self == Model and other.class.parent == Models)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user