aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-09-19 04:21:23 -0700
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-09-19 04:21:23 -0700
commit8b2cbb3a832101f0e672ee309beca0f8c555b292 (patch)
tree806fb05eeb173940b0634d970e31fdc46efe0759
parent731d8095355225a9777922c92b453b0c9c7e8e03 (diff)
parent26266cc2763ce60b64ada2a612eeaef2fe08350a (diff)
downloadrails-8b2cbb3a832101f0e672ee309beca0f8c555b292.tar.gz
rails-8b2cbb3a832101f0e672ee309beca0f8c555b292.tar.bz2
rails-8b2cbb3a832101f0e672ee309beca0f8c555b292.zip
Merge pull request #7697 from guilleiguaran/minor-ar-cleanups
Minor cleanups missed during mass assignment options removal from AR
-rw-r--r--activerecord/lib/active_record/nested_attributes.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/nested_attributes.rb b/activerecord/lib/active_record/nested_attributes.rb
index a33285b16f..2e7fb3bbb3 100644
--- a/activerecord/lib/active_record/nested_attributes.rb
+++ b/activerecord/lib/active_record/nested_attributes.rb
@@ -320,7 +320,7 @@ module ActiveRecord
# 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 @@ module ActiveRecord
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