diff options
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/relation/predicate_builder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |