Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Allow a name to be defined to be display in search results. #38

Merged
merged 2 commits into from Oct 22, 2013

Conversation

Projects
None yet
3 participants
Contributor

markprovan commented Apr 12, 2013

While the current implementation uses the class name in the search results. It would be good to be able to define our own custom names. This PR addresses that by allowing the user to define this in the model:

def friendly_search_name
  "Document"
end

Seems like a reasonable API. Since it's already using a helper there it seems like it would be better to add this logic to the helper.

Contributor

markprovan commented Apr 13, 2013

@gwagener Agreed. Will make the relavent changes.

@parndt parndt added a commit that referenced this pull request Oct 22, 2013

@parndt parndt Merge pull request #38 from markprovan/master
Allow a name to be defined to be display in search results.
d1d615d

@parndt parndt merged commit d1d615d into refinery:master Oct 22, 2013

1 check failed

default The Travis build failed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment