aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/algebra/relations/utilities
diff options
context:
space:
mode:
authorBryan Helmkamp <bryan@brynary.com>2009-05-17 14:49:56 -0400
committerBryan Helmkamp <bryan@brynary.com>2009-05-17 14:49:56 -0400
commit3a6e8e5a3f99841691b70b89b0a10f836e6ec071 (patch)
tree89e59775b729616ca9cb4a4f1f70415af35ce3d7 /lib/arel/algebra/relations/utilities
parent892337509b2bd269920dc567bc48c6a28c7222d2 (diff)
downloadrails-3a6e8e5a3f99841691b70b89b0a10f836e6ec071.tar.gz
rails-3a6e8e5a3f99841691b70b89b0a10f836e6ec071.tar.bz2
rails-3a6e8e5a3f99841691b70b89b0a10f836e6ec071.zip
join sql stuff moved into sql adapter
Conflicts: lib/arel/algebra/primitives/value.rb lib/arel/algebra/relations/operations/join.rb lib/arel/algebra/relations/relation.rb spec/arel/unit/relations/join_spec.rb
Diffstat (limited to 'lib/arel/algebra/relations/utilities')
-rw-r--r--lib/arel/algebra/relations/utilities/compound.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/arel/algebra/relations/utilities/compound.rb b/lib/arel/algebra/relations/utilities/compound.rb
index e33b8dbf14..fbff36a868 100644
--- a/lib/arel/algebra/relations/utilities/compound.rb
+++ b/lib/arel/algebra/relations/utilities/compound.rb
@@ -7,12 +7,11 @@ module Arel
:to => :relation
[:attributes, :wheres, :groupings, :orders].each do |operation_name|
- operation = <<-OPERATION
+ class_eval <<-OPERATION, __FILE__, __LINE__
def #{operation_name}
@#{operation_name} ||= relation.#{operation_name}.collect { |o| o.bind(self) }
end
OPERATION
- class_eval operation, __FILE__, __LINE__
end
end
end