Skip to content
Browse files

Document friendly_search_name

  • Loading branch information...
1 parent 0d6cafc commit 46edf78775813584ca78fa08df53503a33b3511b @parndt parndt committed Oct 22, 2013
Showing with 11 additions and 0 deletions.
  1. +11 −0 readme.md
View
11 readme.md
@@ -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](https://github.com/refinery/refinerycms-search/pull/38).
+
+```ruby
+def friendly_search_name
+ "Document"
+end
+```

0 comments on commit 46edf78

Please sign in to comment.
Something went wrong with that request. Please try again.