diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2012-06-09 10:41:21 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2012-06-09 10:41:21 -0300 |
commit | 6bd729e86f4ead25fe614a76aa652425f1d73942 (patch) | |
tree | 489ff43b11ff5e812f32f92a8b237c8cbcbeabd8 /activerecord | |
parent | f9cfe9a4b2bf79c97d221c627a43103fbc0e5a58 (diff) | |
download | rails-6bd729e86f4ead25fe614a76aa652425f1d73942.tar.gz rails-6bd729e86f4ead25fe614a76aa652425f1d73942.tar.bz2 rails-6bd729e86f4ead25fe614a76aa652425f1d73942.zip |
Remove conditional committed by accident
Diffstat (limited to 'activerecord')
-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 |