Commit d2971491 authored by charlie ablett's avatar charlie ablett

Merge branch 'ajk-static-eq' into 'master'

StaticModel equality simplification

See merge request gitlab-org/gitlab!31948
parents b94dac6a 7cf10ebc
......@@ -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