Symbol operator comparability #16

Merged
merged 2 commits into from Sep 14, 2011

Projects

None yet

3 participants

@joeljunstrom

Hi peeps, this basically makes symbol operator not throw an error when compared to instances of other classes.

This was needed for me when using symbol operators as values in mongomapper (the dirty new value != old value) gets sad otherwise but i figured getting an error is not the expected behavior so.. here a pull request.

Cheers for your awesome work on this (and MM) <3

@joeljunstrom

Meh, that should have been self.class == other.class for consistency I suppose

@jnunemaker
Collaborator

Good catch. Will merge soon.

@bkeepers bkeepers merged commit 008c7fe into mongomapper:master Sep 14, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment