mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Updated to use lazy loading when requiring
This commit is contained in:
parent
714c620ea2
commit
77a4a27757
@ -42,7 +42,9 @@ Lastly, in order to properly handle JSON API responses, we need to register a JS
|
||||
|
||||
```ruby
|
||||
# config/initializers/active_model_serializers.rb
|
||||
require 'active_model_serializers/register_jsonapi_renderer'
|
||||
ActiveSupport.on_load(:action_controller) do
|
||||
require 'active_model_serializers/register_jsonapi_renderer'
|
||||
end
|
||||
```
|
||||
|
||||
### Adapter Changes
|
||||
|
||||
Loading…
Reference in New Issue
Block a user