aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/algebra
diff options
context:
space:
mode:
authorBryan Helmkamp <bryan@brynary.com>2009-09-20 12:00:39 -0400
committerBryan Helmkamp <bryan@brynary.com>2009-09-20 12:00:39 -0400
commit58920bc508a533d02140f4df3db25c3b9e1c7597 (patch)
treea27fcdd77290be44d495c4ff145df94fd130c9fa /lib/arel/algebra
parent724b48620c5cf21920717d66eea6e7cd4148b535 (diff)
parent8852db7087a8f4f98e5fd26fa33bac14a5400979 (diff)
downloadrails-58920bc508a533d02140f4df3db25c3b9e1c7597.tar.gz
rails-58920bc508a533d02140f4df3db25c3b9e1c7597.tar.bz2
rails-58920bc508a533d02140f4df3db25c3b9e1c7597.zip
Merge remote branch 'miloops/master' into miloops
Conflicts: spec/connections/mysql_connection.rb spec/connections/postgresql_connection.rb spec/connections/sqlite3_connection.rb
Diffstat (limited to 'lib/arel/algebra')
-rw-r--r--lib/arel/algebra/relations/relation.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/algebra/relations/relation.rb b/lib/arel/algebra/relations/relation.rb
index 9fdac26528..5403e40fae 100644
--- a/lib/arel/algebra/relations/relation.rb
+++ b/lib/arel/algebra/relations/relation.rb
@@ -110,7 +110,7 @@ module Arel
private
def matching_attributes(attribute)
(@matching_attributes ||= attributes.inject({}) do |hash, a|
- (hash[a.root] ||= []) << a
+ (hash[a.is_a?(Value) ? a.value : a.root] ||= []) << a
hash
end)[attribute.root] || []
end