Use deserialize_params helper

This commit is contained in:
Thor77 2018-11-25 20:08:38 +01:00
parent 0a583ebe53
commit 4c05a7222e
No known key found for this signature in database
GPG Key ID: 5051E71B46AA669A
1 changed files with 1 additions and 1 deletions

View File

@ -26,6 +26,6 @@ class TeamsController < ApplicationController
end
def team_params
ActiveModelSerializers::Deserialization.jsonapi_parse(params, only: [:name])
deserialize_params only: %i[name]
end
end