mirror of
https://github.com/samsonjs/grape-active_model_serializers.git
synced 2026-03-25 08:45:55 +00:00
Use ActiveModelSerializers::Adapter
This commit is contained in:
parent
0c98ff6b07
commit
78229c9dea
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ module Grape
|
|||
serializer = fetch_serializer(resource, env)
|
||||
|
||||
if serializer
|
||||
serializer.to_json
|
||||
::ActiveModelSerializers::Adapter.create(serializer).to_json
|
||||
else
|
||||
Grape::Formatter::Json.call resource, env
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue