diff --git a/app/controllers/concerns/action_rendering.rb b/app/controllers/concerns/action_rendering.rb index cb3d12b5..3f007994 100644 --- a/app/controllers/concerns/action_rendering.rb +++ b/app/controllers/concerns/action_rendering.rb @@ -11,7 +11,8 @@ def index def show authorize model_class.where(id: resource_ids) - render json: serializer_class.resource(params, nil, current_user: current_user) + params.permit! + render json: serializer_class.resource(params.to_h, nil, current_user: current_user) end def create