cirandas.net

ref: master

plugins/elasticsearch/views/elasticsearch_plugin/_search_collection.html.erb


<% for result in @results.to_a %>
  <% for klass, model_label in @searchable_types.except(:all) %>
    <% if result.is_a? klass.to_s.classify.constantize %>
      
<%= render partial: "#{klass}_display", :locals => { klass => result, :model_label => model_label} %>
<% break %> <% end %> <% end %> <% end %>
<%= pagination_links @results if @results.count > 0 %>