Permalink
Browse files

Here the intention was to assign to different objects

  • Loading branch information...
1 parent 7184a9e commit 0b4211c88b97fcac7f98170d73c4e264ce253700 @spastorino spastorino committed with Carl Lerche May 8, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/relation/finder_methods.rb
View
2 activerecord/lib/active_record/relation/finder_methods.rb
@@ -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

0 comments on commit 0b4211c

Please sign in to comment.