Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -329,6 +329,7 @@ class ApplicationController < ActionController::Base
end
end
```

```ruby
# app/controllers/books_controller.rb
class BooksController < ApplicationController
Expand All @@ -343,6 +344,7 @@ class BooksController < ApplicationController
@book.reviews.map(&:author) # This will not raise N+1 errors
end
end
```

## Custom Logging Configuration

Expand Down
Loading