hack to fix https://github.com/rails-api/active_model_serializers/issues/490