提交 15dab0d2 编写于 作者: X Xavier Noria

two small details from the previous patch

上级 0be5adae
......@@ -85,7 +85,7 @@ def exec_explain(sqls, binds) # :nodoc:
# the threshold is set to 0.
#
# As the name of the method suggests this only applies to automatic
# EXPLAINs, manual calls to +ActiveRecord::Relation#explain' run.
# EXPLAINs, manual calls to +ActiveRecord::Relation#explain+ run.
def silence_auto_explain
# Implemented as a flag rather that setting the threshold to nil
# because we should not depend on a value that may be changed
......
......@@ -1396,7 +1396,7 @@ is a class and instance method of +ActiveRecord::Base+:
<ruby>
silence_auto_explain do
# no automatic EXPLAIN is triggered here
# no automatic EXPLAIN is triggered here
end
</ruby>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册