README.md in prosopite-1.0.7 vs README.md in prosopite-1.0.8
- old
+ new
@@ -126,11 +126,11 @@
```ruby
class ApplicationController < ActionController::Base
unless Rails.env.production?
around_action :n_plus_one_detection
-
+
def n_plus_one_detection
Prosopite.scan
yield
ensure
Prosopite.finish
@@ -177,14 +177,14 @@
WARNING: scan/finish should run before/after **each** test and NOT before/after the whole suite.
## Allow list
-Ignore notifications for call stacks containing one or more substrings:
+Ignore notifications for call stacks containing one or more substrings / regex:
```ruby
-Prosopite.allow_stack_paths = ['substring_in_call_stack']
+Prosopite.allow_stack_paths = ['substring_in_call_stack', /regex/]
```
Ignore notifications matching a specific SQL query:
```ruby
@@ -199,10 +199,10 @@
Prosopite.scan
<code to scan>
Prosopite.finish
```
-or
+or
```ruby
Prosopite.scan do
<code to scan>
end