Commit 7cf10ebc authored by Alex Kalderimis's avatar Alex Kalderimis

StaticModel equality simplification

parent 4e5a568b
...@@ -40,10 +40,6 @@ module StaticModel ...@@ -40,10 +40,6 @@ module StaticModel
end end
def ==(other) def ==(other)
if other.is_a? ::StaticModel other.present? && other.is_a?(self.class) && id == other.id
id == other.id
else
super
end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment