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