mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
Merge pull request #2253 from zvkemp/disable-logging-docs
[docs] disable logger via /dev/null instead of AS::N.unsubscribe
This commit is contained in:
commit
f495f44889
@ -16,6 +16,5 @@ ActiveModelSerializers.logger = Logger.new(STDOUT)
|
|||||||
You can also disable the logger, just put this in `config/initializers/active_model_serializers.rb`:
|
You can also disable the logger, just put this in `config/initializers/active_model_serializers.rb`:
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
require 'active_model_serializers'
|
ActiveModelSerializers.logger = Logger.new(IO::NULL)
|
||||||
ActiveSupport::Notifications.unsubscribe(ActiveModelSerializers::Logging::RENDER_EVENT)
|
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user