Add deserialize_params helper
This commit is contained in:
parent
ea812bef12
commit
fecdb7db2d
|
|
@ -24,4 +24,8 @@ class ApplicationController < ActionController::API
|
||||||
]
|
]
|
||||||
}, status: :forbidden
|
}, status: :forbidden
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def deserialize_params(opts)
|
||||||
|
ActiveModelSerializers::Deserialization.jsonapi_parse(params, opts)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue