Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove unused private method AR::NestedAttributes#unassignable_keys a…

…nd reference to mass_assignment options
  • Loading branch information...
commit 26266cc2763ce60b64ada2a612eeaef2fe08350a 1 parent 731d809
@guilleiguaran guilleiguaran authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 activerecord/lib/active_record/nested_attributes.rb
View
6 activerecord/lib/active_record/nested_attributes.rb
@@ -320,7 +320,7 @@ def _destroy
# If the given attributes include a matching <tt>:id</tt> attribute, or
# update_only is true, and a <tt>:_destroy</tt> key set to a truthy value,
# then the existing record will be marked for destruction.
- def assign_nested_attributes_for_one_to_one_association(association_name, attributes, assignment_opts = {})
+ def assign_nested_attributes_for_one_to_one_association(association_name, attributes)
options = self.nested_attributes_options[association_name]
attributes = attributes.with_indifferent_access
@@ -469,9 +469,5 @@ def call_reject_if(association_name, attributes)
def raise_nested_attributes_record_not_found(association_name, record_id)
raise RecordNotFound, "Couldn't find #{self.class.reflect_on_association(association_name).klass.name} with ID=#{record_id} for #{self.class.name} with ID=#{id}"
end
-
- def unassignable_keys(assignment_opts)
- UNASSIGNABLE_KEYS
- end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.