Merge branch '0-10-stable' into v0.10/add_raise_cannot_infer_root_key_error_option

This commit is contained in:
tashiro 2021-02-11 20:25:15 +09:00 committed by GitHub
commit 7a80f98e2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`:
```ruby
require 'active_model_serializers'
ActiveSupport::Notifications.unsubscribe(ActiveModelSerializers::Logging::RENDER_EVENT)
ActiveModelSerializers.logger = Logger.new(IO::NULL)
```