Closed ur5us closed 1 month ago
@pat It’s been a long time that we’ve chatted about this in the RubyNZ Slack. Anyway, I’m curious whether you’d be open to this type of feature? For the moment there are no tests as I’m testing the waters. Moreover, not entirely sure how to approach testing other than creating another test app and then testing for the absence of methods on ActiveRecord::Base
.
Hi @ur5us :) Very happy to have this feature, though yes, it's a hard thing to test. If you could try it out with a test app that'd be a great place to start - not sure we can do much more than that.
Ended up implementing this in #1265, and is part of 5.6.0 which has just been released :)
Method names like
.search
can collide with existing scopes which then results in the following error:With that setting being set to
false
it allows one to enable ThinkingSphinx per model instead of globally.