From 9d8e661a1ad5e2f1904cef1d076355273aa6146e Mon Sep 17 00:00:00 2001 From: Nick Kallen Date: Sun, 4 May 2008 17:03:31 -0700 Subject: minor cleanup --- lib/arel/relations/join.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lib/arel/relations/join.rb') 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) -- cgit v1.2.3