Skip to content

Commit d8e17c5

Browse files
authored
Merge pull request rails#44609 from djpowers/patch-1
Update verbose_query_logs method [ci-skip]
2 parents 74ba52e + 3c378c4 commit d8e17c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/debugging_rails_applications.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ irb(main):001:0> Article.pamplemousse
217217
=> #<Comment id: 2, author: "1", body: "Well, actually...", article_id: 1, created_at: "2018-10-19 00:56:10", updated_at: "2018-10-19 00:56:10">
218218
```
219219

220-
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:
220+
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:
221221

222222
```
223223
irb(main):003:0> Article.pamplemousse

0 commit comments

Comments
 (0)