Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 555801c908851ea4d37f511397e049d21dcca9b5 1 parent 3616141
Santiago Pastorino authored Carl Lerche committed

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  activerecord/lib/active_record/base.rb
2  activerecord/lib/active_record/base.rb
@@ -1943,7 +1943,7 @@ def self.#{method_id}(*args)
1943 1943
               self.class_eval <<-EOS, __FILE__, __LINE__ + 1
1944 1944
                 def self.#{method_id}(*args)
1945 1945
                   attributes = [:#{attribute_names.join(',:')}]
1946  
-                  protected_attributes_for_create = unprotected_attributes_for_create = {}
  1946
+                  protected_attributes_for_create, unprotected_attributes_for_create = {}, {}
1947 1947
                   args.each_with_index do |arg, i|
1948 1948
                     if arg.is_a?(Hash)
1949 1949
                       protected_attributes_for_create = args[i].with_indifferent_access

0 notes on commit 555801c

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