Browse files

Document friendly_search_name

  • Loading branch information...
parndt committed Oct 22, 2013
1 parent 0d6cafc commit 46edf78775813584ca78fa08df53503a33b3511b
Showing with 11 additions and 0 deletions.
  1. +11 −0
@@ -78,3 +78,14 @@ end
You will need to replace the indexed fields with those appropriate for your model.
If you wish to override the url used in the search results just add a `url` method to your model and the result of this method will be used instead.
+## Displaying a friendlier name for your model
+Just define the method `friendly_search_name` to override what is displayed
+for each search result for your model as per [the implementing pull request](
+def friendly_search_name
+ "Document"

0 comments on commit 46edf78

Please sign in to comment.