diff --git a/lib/static_model.rb b/lib/static_model.rb index 86bf8d62f9af7a1fae412c597ab51ad28b0f306a..27805817f4d099491c13624f19ca2405397ec047 100644 --- a/lib/static_model.rb +++ b/lib/static_model.rb @@ -40,10 +40,6 @@ def destroyed? 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