instance method
update
Ruby on Rails 4.2.9
Since v2.2.3Signature
update(arel, name = nil, binds = [])
Executes the update statement and returns the number of rows affected.
Parameters
-
arelreq -
nameopt = nil -
bindsopt = []
Source
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 113
def update(arel, name = nil, binds = [])
exec_update(to_sql(arel, binds), name, binds)
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb line 113
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::DatabaseStatements