method
update_entry
v7.2.3 -
Show latest stable
- Class:
ActiveRecord::InternalMetadata
update_entry(connection, key, new_value)private
No documentation available.
# File activerecord/lib/active_record/internal_metadata.rb, line 142
def update_entry(connection, key, new_value)
um = Arel::UpdateManager.new(arel_table)
um.set [
[arel_table[value_key], new_value],
[arel_table[:updated_at], current_time(connection)]
]
um.where(arel_table[primary_key].eq(key))
connection.update(um, "#{self.class} Update")
end