Here the intention was to assign to different objects

This commit is contained in:
Santiago Pastorino 2010-05-08 17:17:11 -03:00 committed by Carl Lerche
parent 7184a9e643
commit 0b4211c88b
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ module ActiveRecord
end
def find_or_instantiator_by_attributes(match, attributes, *args)
protected_attributes_for_create = unprotected_attributes_for_create = {}
protected_attributes_for_create, unprotected_attributes_for_create = {}, {}
args.each_with_index do |arg, i|
if arg.is_a?(Hash)
protected_attributes_for_create = args[i].with_indifferent_access