aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/relations/join.rb
diff options
context:
space:
mode:
authorNick Kallen <nkallen@nick-kallens-computer-2.local>2008-05-04 17:03:31 -0700
committerNick Kallen <nkallen@nick-kallens-computer-2.local>2008-05-04 17:03:31 -0700
commit9d8e661a1ad5e2f1904cef1d076355273aa6146e (patch)
treebed578b1c8e677314779fd18fd7fc88eb7bddee7 /lib/arel/relations/join.rb
parentf413129f37bbbc4100317cb60179f43291e69f8e (diff)
downloadrails-9d8e661a1ad5e2f1904cef1d076355273aa6146e.tar.gz
rails-9d8e661a1ad5e2f1904cef1d076355273aa6146e.tar.bz2
rails-9d8e661a1ad5e2f1904cef1d076355273aa6146e.zip
minor cleanup
Diffstat (limited to 'lib/arel/relations/join.rb')
-rw-r--r--lib/arel/relations/join.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/arel/relations/join.rb b/lib/arel/relations/join.rb
index 20c19e0848..1b37b3f225 100644
--- a/lib/arel/relations/join.rb
+++ b/lib/arel/relations/join.rb
@@ -23,11 +23,6 @@ module Arel
externalize(relation2).attributes).collect { |a| a.bind(self) }
end
- # TESTME: Not sure which scenario needs this method, was driven by failing tests in ActiveRecord
- def column_for(attribute)
- (relation1[attribute] || relation2[attribute]).column
- end
-
def joins(formatter = Sql::TableReference.new(self))
this_join = [
join_sql,
@@ -58,7 +53,7 @@ module Arel
def table
relation1.aggregation?? relation1 : relation1.table
end
-
+
delegate :name, :to => :relation1
def relation_for(attribute)