instance method
attributes_for_update
Ruby on Rails 4.2.9
Since v4.0.13 PrivateSignature
attributes_for_update(attribute_names)
Filters the primary keys and readonly attributes from the attribute names.
Parameters
-
attribute_namesreq
Source
# File activerecord/lib/active_record/attribute_methods.rb, line 409
def attributes_for_update(attribute_names)
attribute_names.reject do |name|
readonly_attribute?(name)
end
end
Defined in activerecord/lib/active_record/attribute_methods.rb line 409
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::AttributeMethods