app/views/searchjoy/searches/recent.html.erb in searchjoy-0.5.1 vs app/views/searchjoy/searches/recent.html.erb in searchjoy-1.0.0

- old
+ new

@@ -13,10 +13,11 @@ </td> <td style="width: 35%; color: #5cb85c;"> <% if search.converted_at %> <strong>✓</strong> - <%= search.convertable ? (Searchjoy.conversion_name ? Searchjoy.conversion_name.call(search.convertable) : "#{search.convertable_type} #{search.convertable_id}") : "Converted" %> + <% convertable = Searchjoy.multiple_conversions ? search.conversions.min_by(&:created_at)&.convertable : search.convertable %> + <%= convertable ? (Searchjoy.conversion_name ? Searchjoy.conversion_name.call(convertable) : "#{convertable.model_name.name} #{convertable.id}") : "Converted" %> <% end %> </td> <td style="width: 20%;" class="num"> <%= time_ago_in_words search.created_at %> ago <div class="text-muted"><%= pluralize search.results_count, "result" %></div>