Skip to content

Commit

Permalink
Here the intention was to assign to different objects
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino authored and Carl Lerche committed May 8, 2010
1 parent 7184a9e commit 0b4211c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/relation/finder_methods.rb
Expand Up @@ -234,7 +234,7 @@ def find_by_attributes(match, attributes, *args)
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
Expand Down

0 comments on commit 0b4211c

Please sign in to comment.