instance method
update
Ruby on Rails 2.2.3
Since v2.2.3Signature
update(sql, name = nil)
Executes the update statement and returns the number of rows affected.
Parameters
-
sqlreq -
nameopt = nil
Source
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 48
def update(sql, name = nil)
update_sql(sql, name)
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb line 48
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::DatabaseStatements