lib/algolia/models/ingestion/trigger.rb in algolia-3.0.0.alpha.5 vs lib/algolia/models/ingestion/trigger.rb in algolia-3.0.0.alpha.6

- old
+ new

@@ -70,10 +70,10 @@ if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } sub_type = Regexp.last_match[:sub_type] return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } end else # model - const = Algolia.const_get(klass) + const = Algolia::Ingestion.const_get(klass) if const if const.respond_to?(:openapi_one_of) # nested oneOf model model = const.build(data) else # raise if data contains keys that are not known to the model