mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove unused private method AR::NestedAttributes#unassignable_keys and reference to mass_assignment options
This commit is contained in:
parent
731d809535
commit
26266cc276
1 changed files with 1 additions and 5 deletions
|
@ -320,7 +320,7 @@ module ActiveRecord
|
||||||
# If the given attributes include a matching <tt>:id</tt> attribute, or
|
# 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,
|
# update_only is true, and a <tt>:_destroy</tt> key set to a truthy value,
|
||||||
# then the existing record will be marked for destruction.
|
# 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]
|
options = self.nested_attributes_options[association_name]
|
||||||
attributes = attributes.with_indifferent_access
|
attributes = attributes.with_indifferent_access
|
||||||
|
|
||||||
|
@ -469,9 +469,5 @@ module ActiveRecord
|
||||||
def raise_nested_attributes_record_not_found(association_name, record_id)
|
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}"
|
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
|
end
|
||||||
|
|
||||||
def unassignable_keys(assignment_opts)
|
|
||||||
UNASSIGNABLE_KEYS
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue