instance method
attributes_for_update
Ruby on Rails 4.1.16
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 444
def attributes_for_update(attribute_names)
attribute_names.select do |name|
column_for_attribute(name) && !readonly_attribute?(name)
end
end
Defined in activerecord/lib/active_record/attribute_methods.rb line 444
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::AttributeMethods