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

StaticModel equality simplification

parent 4e5a568b
......@@ -40,10 +40,6 @@ module StaticModel
end
def ==(other)
if other.is_a? ::StaticModel
id == other.id
else
super
end
other.present? && other.is_a?(self.class) && id == other.id
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