module Scrivito class ObjCreateParamsParser < ObjParamsParser private def convert_params(params) if obj_class = params['_obj_class'] obj_class = Obj.type_computer.compute_type_without_fallback(obj_class) convert_field_params(params, obj_class.attribute_definitions) else raise ArgumentError, 'Missing "_obj_class" param' end end end end