Skip to content
Browse files

The intention here was to assign to different objects ht: Radar

  • Loading branch information...
1 parent 3616141 commit 555801c908851ea4d37f511397e049d21dcca9b5 @spastorino spastorino committed with Carl Lerche May 8, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/base.rb
View
2 activerecord/lib/active_record/base.rb
@@ -1943,7 +1943,7 @@ def self.#{method_id}(*args)
self.class_eval <<-EOS, __FILE__, __LINE__ + 1
def self.#{method_id}(*args)
attributes = [:#{attribute_names.join(',:')}]
- 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 555801c

Please sign in to comment.
Something went wrong with that request. Please try again.