Permalink
Browse files

Make SymbolOperator check other.class before comparing method values

  • Loading branch information...
1 parent 5e1281a commit f71d2989dcc44c20b3dece3658bb1a1aebcfa098 @joeljunstrom joeljunstrom committed Aug 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/plucky/extensions/symbol.rb
@@ -75,7 +75,7 @@ def <=>(other)
end
def ==(other)
- field == other.field && operator == other.operator
+ other.class == self.class && field == other.field && operator == other.operator
end
end

0 comments on commit f71d298

Please sign in to comment.