diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-28 09:33:51 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-28 09:33:51 -0700 |
commit | 03a0002d9f8fde60bd4ce87e7f5979eddc0ad3a4 (patch) | |
tree | 4c1917121bd4c356734677704b3cf6741a43566d /lib/arel/algebra | |
parent | f962fb70a07722483d4443d40805e6e2dd791fa1 (diff) | |
download | rails-03a0002d9f8fde60bd4ce87e7f5979eddc0ad3a4.tar.gz rails-03a0002d9f8fde60bd4ce87e7f5979eddc0ad3a4.tar.bz2 rails-03a0002d9f8fde60bd4ce87e7f5979eddc0ad3a4.zip |
#hash #eql? and #== were only used in tests. removed them and wrote better tests
Diffstat (limited to 'lib/arel/algebra')
-rw-r--r-- | lib/arel/algebra/relations/operations/join.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/arel/algebra/relations/operations/join.rb b/lib/arel/algebra/relations/operations/join.rb index 72b4c9b8fe..bfb7727313 100644 --- a/lib/arel/algebra/relations/operations/join.rb +++ b/lib/arel/algebra/relations/operations/join.rb @@ -15,10 +15,6 @@ module Arel relation1.name end - def hash - @hash ||= :relation1.hash - end - def attributes @attributes ||= (relation1.externalize.attributes | relation2.externalize.attributes).bind(self) end @@ -61,16 +57,6 @@ module Arel end end - def == other - super || Join === other && - relation1 == other.relation1 && - relation2 == other.relation2 && - predicates == other.predicates - end - - # FIXME remove this. :'( - alias :eql? :== - def eval result = [] relation1.call.each do |row1| |