From 32bb1b9d799bc76164b3f14b59684d1332dcee54 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Mon, 14 Apr 2025 08:27:13 +0200 Subject: [PATCH] README.md: Formatting --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 56253bb..ea8c179 100644 --- a/README.md +++ b/README.md @@ -154,7 +154,7 @@ config.after_initialize do Prosopite.rails_logger = true end ``` -``` + ## Test Environment Usage Tests with N+1 queries can be configured to fail with: @@ -329,6 +329,7 @@ class ApplicationController < ActionController::Base end end ``` + ```ruby # app/controllers/books_controller.rb class BooksController < ApplicationController @@ -343,6 +344,7 @@ class BooksController < ApplicationController @book.reviews.map(&:author) # This will not raise N+1 errors end end +``` ## Custom Logging Configuration