aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2011-12-03 14:26:34 +0100
committerXavier Noria <fxn@hashref.com>2011-12-03 14:26:34 +0100
commitde24ed9f2d582096fcc5b83984f187c2a094e83a (patch)
tree80c5b1ab5dccbd10b73e4474181c85704b014c47 /railties
parenta02691ce09c327e307a02f757c89d3cbd4d5ee56 (diff)
downloadrails-de24ed9f2d582096fcc5b83984f187c2a094e83a.tar.gz
rails-de24ed9f2d582096fcc5b83984f187c2a094e83a.tar.bz2
rails-de24ed9f2d582096fcc5b83984f187c2a094e83a.zip
removes the convenience instance version of AR::Base.silence_auto_explain
Rationale: As discussed with José and Jon, this convenience shortcut is not clearly justified and it could let the user thing the disabled EXPLAINs are related to the model instance rather than being globally disabled.
Diffstat (limited to 'railties')
-rw-r--r--railties/guides/source/active_record_querying.textile5
1 files changed, 2 insertions, 3 deletions
diff --git a/railties/guides/source/active_record_querying.textile b/railties/guides/source/active_record_querying.textile
index 742aefc32f..0cbabd71a1 100644
--- a/railties/guides/source/active_record_querying.textile
+++ b/railties/guides/source/active_record_querying.textile
@@ -1391,11 +1391,10 @@ production modes.
h5. Disabling Automatic EXPLAIN
-Automatic EXPLAIN can be selectively silenced with +silence_auto_explain+, which
-is a class and instance method of +ActiveRecord::Base+:
+Automatic EXPLAIN can be selectively silenced with +ActiveRecord::Base.silence_auto_explain+:
<ruby>
-silence_auto_explain do
+ActiveRecord::Base.silence_auto_explain do
# no automatic EXPLAIN is triggered here
end
</ruby>