Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edr::Model should support entity equality #2

Open
sskirby opened this issue Dec 17, 2012 · 1 comment
Open

Edr::Model should support entity equality #2

sskirby opened this issue Dec 17, 2012 · 1 comment

Comments

@sskirby
Copy link
Member

sskirby commented Dec 17, 2012

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
@arturopie
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants