提交 c4c55774 编写于 作者: S Sean Griffin

Merge pull request #20950 from vngrs/fix_wrong_doc_about_transaction

fix doc about ActiveRecord::Transactions::ClassMethods#transaction [ci skip]
......@@ -204,9 +204,8 @@ module Transactions
#
# Note that "TRUNCATE" is also a MySQL DDL statement!
module ClassMethods
# See ActiveRecord::Transactions::ClassMethods for detailed documentation.
# See the ConnectionAdapters::DatabaseStatements#transaction API docs.
def transaction(options = {}, &block)
# See the ConnectionAdapters::DatabaseStatements#transaction API docs.
connection.transaction(options, &block)
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册