From 6bd729e86f4ead25fe614a76aa652425f1d73942 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Sat, 9 Jun 2012 10:41:21 -0300 Subject: [PATCH] Remove conditional committed by accident --- activerecord/lib/active_record/relation/predicate_builder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activerecord/lib/active_record/relation/predicate_builder.rb b/activerecord/lib/active_record/relation/predicate_builder.rb index a240c137ea..cb8f903474 100644 --- a/activerecord/lib/active_record/relation/predicate_builder.rb +++ b/activerecord/lib/active_record/relation/predicate_builder.rb @@ -4,7 +4,7 @@ module ActiveRecord attributes.map do |column, value| table = default_table - if value.is_a?(Hash) && !value.empty? + if value.is_a?(Hash) table = Arel::Table.new(column, engine) value.map { |k,v| build(table[k.to_sym], v) } else