README.md in prosopite-0.1.7 vs README.md in prosopite-0.2.0
- old
+ new
@@ -118,15 +118,17 @@
Prosopite auto-detection can be enabled on all controllers:
```ruby
class ApplicationController < ActionController::Base
- before_action do
- Prosopite.scan
- end
+ unless Rails.env.production?
+ before_action do
+ Prosopite.scan
+ end
- after_action do
- Prosopite.finish
+ after_action do
+ Prosopite.finish
+ end
end
end
```
And the preferred notification channel should be configured: