Permalink
Browse files

Remove the .to_s usage in equality.

  • Loading branch information...
1 parent 04831d3 commit fb78c80af8c122d54b64c4bdbab3e3642e2c3f38 Charlie Savage committed Mar 16, 2012
Showing with 0 additions and 10 deletions.
  1. +0 −10 lib/composite_primary_keys/composite_arrays.rb
@@ -13,16 +13,6 @@ def to_s
# Doing this makes it easier to parse Base#[](attr_name)
join(ID_SEP)
end
-
- def hash
- to_s.hash
- end
-
- def ==(other_composite_keys)
- to_s == other_composite_keys.to_s
- end
-
- alias :eql? :==
end
end

0 comments on commit fb78c80

Please sign in to comment.