instance method
update
Ruby on Rails 3.2.22.5
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 95
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 95
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::DatabaseStatements