Permalink
Browse files

Added option of friendly search result name

  • Loading branch information...
1 parent 848772d commit a20bc907c4d04f74933d6a02b5465b535fd7047e @markprovan markprovan committed Apr 12, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 app/views/refinery/search/show.html.erb
@@ -10,7 +10,11 @@
<% @results.each do |result| %>
<li>
<span class='result_type'>
- <%= result_type result %>
+ <% if result.class.method_defined?(:friendly_search_name) %>
+ <%= result.friendly_search_name %>
+ <% else %>
+ <%= result_type result %>
+ <% end %>
</span>
<%= link_to result_title(result).html_safe, result_url(result) %>
</li>

0 comments on commit a20bc90

Please sign in to comment.