Permalink
Browse files

Remove conditional committed by accident

  • Loading branch information...
1 parent f9cfe9a commit 6bd729e86f4ead25fe614a76aa652425f1d73942 @spastorino spastorino committed Jun 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/relation/predicate_builder.rb
@@ -4,7 +4,7 @@ def self.build_from_hash(engine, attributes, default_table)
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

0 comments on commit 6bd729e

Please sign in to comment.