mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove conditional committed by accident
This commit is contained in:
parent
f9cfe9a4b2
commit
6bd729e86f
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ module ActiveRecord
|
||||||
attributes.map do |column, value|
|
attributes.map do |column, value|
|
||||||
table = default_table
|
table = default_table
|
||||||
|
|
||||||
if value.is_a?(Hash) && !value.empty?
|
if value.is_a?(Hash)
|
||||||
table = Arel::Table.new(column, engine)
|
table = Arel::Table.new(column, engine)
|
||||||
value.map { |k,v| build(table[k.to_sym], v) }
|
value.map { |k,v| build(table[k.to_sym], v) }
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue