Ironically, I'm having the opposite problem:
Anytime I run ts:config or ts:index in production, it doesn't pick up
any of the models with define_index. If I set cache_classes to false
for production, it will work just fine.
An even bigger problem is that when in production I get exceptions
"Expected xxxx to define: xxxx" errors. Removing the thinking_sphinx
plugin and these go away. I suspect it has to do with the model
loading that is done, but I can't find any way to fix the problem.
Drew
On Aug 29, 4:13 am, Pat Allan <
p...@freelancing-gods.com> wrote:
> Just added the call back, until we figure out the differences in why
> it works sometimes and not others.
>
> Sorry causing the problem :|
>
> --
> Pat
>
> On 29/08/2008, at 5:26 AM, DrMark wrote:
>
>
>
> > Aloha all,
>
> > I am also running edge Rails and Thinking Sphinx installed as a
> > plugin. I noticed that adding it to the rake task fixes the problem,
> > as does adding the load_model call back to the code. If only I had
> > some extra time to help troubleshoot :(
>
> > On Aug 28, 5:09 pm, Claudio Poli <
masterk...@gmail.com> wrote:
> >> as I suspected this have something to do in the way models are loaded
> >> (this is a recent change).
>
> >> models are getting correctly loaded and picked up by the configurator
> >> if config.cache_classes= true, this is the default behaviour in