Hi Patrick

First (and perhaps you already know this): if you list activeadmin in your 
Gemfile *before* thinking-sphinx, you should be able to use both gems.

As for ensuring the right search method is called - which version of 
activeadmin are you using? I believe recent (and even not-so-recent) versions 
should use the metasearch method rather than the search method (looking at the 
git history, it seems to have had this behaviour for at least two years).

-- 
Pat

On 12 Aug 2014, at 12:38 am, pix_plm <[email protected]> wrote:

> Hi,
> I tried to add active_admin to my project which runs Sphinx and 
> Thinking_sphinx but I had this problem that active_admin needs metasearch and 
> both gems (TS & MetaSearch) are using .search.
> Active_admin is used for Model User and when it tries to launch User 
> interface he would call user.search, which launch TS instead of Metasearch 
> (which is first in my Gemlist) and because Model User is not one of the TS 
> models it raises an error
> 
> Any idea to avoid this, or should I use rails_admin instead of active_admin ?
> 
> Thanks
> Patrick
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Thinking Sphinx" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/thinking-sphinx.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/d/optout.

Reply via email to