lib/crunchbase/models/concerns/entity.rb in crunchbase4-0.1.7 vs lib/crunchbase/models/concerns/entity.rb in crunchbase4-0.1.8

- old
+ new

@@ -28,10 +28,10 @@ card_data = response_cards.dig(card_id) card_model = model_mappings[card_id] card_objects = if card_data.is_a?(Array) card_data.each_with_object([]) do |data, objects| new_card_instance = card_model.new - objects << dynamic_attributes(new_card_instance, new_card_instance.basis_fields, data) + objects << dynamic_attributes(new_card_instance, new_card_instance.field_ids, data) end else card_data.nil? ? nil : dynamic_attributes(card_model.new, extract_fields, data) end