lib/meducation_sdk/services/recommender.rb in meducation_sdk-1.6.10 vs lib/meducation_sdk/services/recommender.rb in meducation_sdk-1.6.11

- old
+ new

@@ -55,10 +55,15 @@ def recommender_json path = "/combined" separator = "?" @items.each do |item| - path << separator << "#{spi_type_for(item.class.name)}/#{item.id}" + item_type, item_id = if item.is_a?(BoardItem) + [item.item_type, item.item_id] + else + [item.class.name, item.id] + end + path << separator << "#{spi_type_for(item_type)}/#{item_id}" separator = "&" end log "Calling #{config.recommender_host}:#{config.recommender_host}#{path}" response = Net::HTTP.get_response(config.recommender_host, path, config.recommender_port) body = response.body