Allow classes to be passed instead of index name strings #430

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@davekrupinski

Added functionality to allow classes responding to an :index_name method to be passed into search. Very useful when defining global or individual index names or prefixes.

@karmi
Owner
karmi commented Oct 23, 2012

Hey, what's the motivation here? I mean, using Search::Search.new(ActiveModelArticle.index_name) is equally easy?

@davekrupinski

It is definitely just an added convenience to the library, but does bring the interface more in line with other common search gems (sunspot, thinking_sphinx, etc).

@karmi
Owner
karmi commented Oct 26, 2012

Maybe, but sorry, thins feels too heavy to me...

@karmi karmi closed this Oct 26, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment