From 0b4211c88b97fcac7f98170d73c4e264ce253700 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Sat, 8 May 2010 17:17:11 -0300 Subject: Here the intention was to assign to different objects --- activerecord/lib/active_record/relation/finder_methods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record') diff --git a/activerecord/lib/active_record/relation/finder_methods.rb b/activerecord/lib/active_record/relation/finder_methods.rb index f69acb6877..7a0c9dc612 100644 --- a/activerecord/lib/active_record/relation/finder_methods.rb +++ b/activerecord/lib/active_record/relation/finder_methods.rb @@ -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 -- cgit v1.2.3