aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-05-08 17:17:11 -0300
committerCarl Lerche <carllerche@mac.com>2010-05-08 23:29:51 +0300
commit0b4211c88b97fcac7f98170d73c4e264ce253700 (patch)
tree168cb446782d245877cf620b1b6da37b4d8cb3ac /activerecord/lib
parent7184a9e6432d0e5e733bd0c25a5c9714623692c4 (diff)
downloadrails-0b4211c88b97fcac7f98170d73c4e264ce253700.tar.gz
rails-0b4211c88b97fcac7f98170d73c4e264ce253700.tar.bz2
rails-0b4211c88b97fcac7f98170d73c4e264ce253700.zip
Here the intention was to assign to different objects
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/relation/finder_methods.rb2
1 files changed, 1 insertions, 1 deletions
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