We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f05515 commit e4dce97Copy full SHA for e4dce97
lib/zendesk_api/resource.rb
@@ -137,12 +137,10 @@ def ==(other)
137
138
return other.id && (other.id == id) if other.is_a?(Data)
139
140
- unless other.is_a?(Integer)
141
- return warn "Trying to compare #{other.class} to a Resource
142
- from #{caller.first}"
143
- end
+ return id == other if other.is_a?(Integer)
144
145
- id == other
+ warn "Trying to compare #{other.class} to a Resource
+ from #{caller.first}"
146
end
147
alias :eql :==
148
0 commit comments