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 1f7f0a3 commit 9c87482Copy full SHA for 9c87482
1 file changed
modules/openapi-generator/src/main/resources/crystal/partial_model_generic.mustache
@@ -270,16 +270,16 @@
270
{{/vars}}
271
# Checks equality by comparing each attribute.
272
# @param [Object] Object to be compared
273
- def ==(o)
274
- return true if self.same?(o)
275
- self.class == o.class{{#vars}} &&
276
- {{name}} == o.{{name}}{{/vars}}{{#parent}} && super(o){{/parent}}
+ def ==(other)
+ return true if self.same?(other)
+ self.class == other.class{{#vars}} &&
+ {{name}} == other.{{name}}{{/vars}}{{#parent}} && super(other){{/parent}}
277
end
278
279
# @see the `==` method
280
281
- def eql?(o)
282
- self == o
+ def eql?(other)
+ self == other
283
284
285
# Calculates hash code according to all attributes.
0 commit comments