From 3c378c4d2f33da6b0fc6bab0fd14cbb756a3050e Mon Sep 17 00:00:00 2001 From: Dave Powers Date: Thu, 3 Mar 2022 22:42:52 -0500 Subject: [PATCH] Update verbose_query_logs method Reflect that this method was moved out of ActiveRecord::Base --- guides/source/debugging_rails_applications.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/source/debugging_rails_applications.md b/guides/source/debugging_rails_applications.md index 4e6b88b480694..51df34b69ffcf 100644 --- a/guides/source/debugging_rails_applications.md +++ b/guides/source/debugging_rails_applications.md @@ -217,7 +217,7 @@ irb(main):001:0> Article.pamplemousse => # ``` -After running `ActiveRecord::Base.verbose_query_logs = true` in the `bin/rails console` session to enable verbose query logs and running the method again, it becomes obvious what single line of code is generating all these discrete database calls: +After running `ActiveRecord.verbose_query_logs = true` in the `bin/rails console` session to enable verbose query logs and running the method again, it becomes obvious what single line of code is generating all these discrete database calls: ``` irb(main):003:0> Article.pamplemousse