Hey. I wonder if anyone got #{subj} message while raking
thinking_sphinx:configure (1.3.17):

** Execute thinking_sphinx:configure
Generating Configuration to /Users/yaroslav/Projects/em/cw/config/
development.sphinx.conf
rake aborted!
undefined method `model' for nil:NilClass
/Users/yaroslav/.rvm/gems/ree-1.8.7-2010.02/gems/activesupport-2.3.5/
lib/active_support/whiny_nil.rb:52:in `method_missing'
/Users/yaroslav/.rvm/gems/ree-1.8.7-2010.02/gems/thinking-
sphinx-1.3.17/lib/thinking_sphinx/active_record.rb:299:in
`local_sphinx_indexes'
/Users/yaroslav/.rvm/gems/ree-1.8.7-2010.02/gems/thinking-
sphinx-1.3.17/lib/thinking_sphinx/active_record.rb:298:in `select'
/Users/yaroslav/.rvm/gems/ree-1.8.7-2010.02/gems/thinking-
sphinx-1.3.17/lib/thinking_sphinx/active_record.rb:298:in
`local_sphinx_indexes'
/Users/yaroslav/.rvm/gems/ree-1.8.7-2010.02/gems/thinking-
sphinx-1.3.17/lib/thinking_sphinx/active_record.rb:236:in `to_riddle'
/Users/yaroslav/.rvm/gems/ree-1.8.7-2010.02/gems/thinking-
sphinx-1.3.17/lib/thinking_sphinx/configuration.rb:153:in `build'
/Users/yaroslav/.rvm/gems/ree-1.8.7-2010.02/gems/thinking-
sphinx-1.3.17/lib/thinking_sphinx/configuration.rb:150:in `each'
/Users/yaroslav/.rvm/gems/ree-1.8.7-2010.02/gems/thinking-
sphinx-1.3.17/lib/thinking_sphinx/configuration.rb:150:in `build'
/Users/yaroslav/.rvm/gems/ree-1.8.7-2010.02/gems/thinking-
sphinx-1.3.17/lib/thinking_sphinx/tasks.rb:61

Faulty code:

      def local_sphinx_indexes
        sphinx_indexes.select { |index|
          index.model == self
        }
      end

It seems that at some point one or more of sphinx_indexes is nil.

The only thing that I may have uncomfortable for TS is STI, but I
don't redefine/extend any indexes in child models. Tried assigning
index name in parent model by hand, still no luck.

Any hints?

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en.

Reply via email to