edr icon indicating copy to clipboard operation
edr copied to clipboard

Edr::Model should support entity equality

Open sskirby opened this issue 13 years ago • 1 comments

Comparing two Edr::Models fails even though they may have the same id.

Consider adding the following method to Edr::Model:

  def ==(other)
    other.instance_of?(self.class) && other.id == self.id
  end

sskirby avatar Dec 17 '12 17:12 sskirby

:+1:

arturopie avatar Dec 17 '12 18:12 arturopie