pat / thinking-sphinx

Sphinx/Manticore plugin for ActiveRecord/Rails
http://freelancing-gods.com/thinking-sphinx
MIT License
1.63k stars 468 forks source link

Doesn't load models in rails 3 engines #285

Closed Roendal closed 13 years ago

Roendal commented 13 years ago

We are working in https://github.com/ging/social_stream-base, a rails 3 engine to create social networks websites. We want to add sphinx indexation for several classes as Posts, Actors, etc.

If you require social_stream-base engine in a final application and run "rake ts:in" it ignores all clases in the rails engine. This problem comes from this line: https://github.com/freelancing-god/thinking-sphinx/blob/rails3/lib/thinking_sphinx/configuration.rb#L110 There you only look for models in the current app and vendor folder, but neglects any other model that could be of interest.

pat commented 13 years ago

This should now be fixed in the rails3 branch - give it a spin, let me know how it goes.

Roendal commented 12 years ago

We have some bugs running in our app, so I can not tell if everything works fine but at least it looks for all the models in our gems. Thanks!

Are your planning to release a new version soon with this changes?