Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v5.1.7) is shown here.
arel_attributes_with_values(attribute_names)
private
Returns a Hash of the Arel::Attributes and
attribute values that have been typecasted for use in an Arel insert/update
method.
# File activerecord/lib/active_record/attribute_methods.rb, line 414
def arel_attributes_with_values(attribute_names)
attrs = {}
arel_table = self.class.arel_table
attribute_names.each do |name|
attrs[arel_table[name]] = typecasted_attribute_value(name)
end
attrs
end