Question

how can I index over a model, whihc is defined in Spree like Spree:Product?

ThinkingSphinx::Index.define :products 

does not work (uninitialized constant Product). What is the syntax for using Spree:Product model? Thanks!

Was it helpful?

Solution

After searching quite some time I found the answer here. The syntax is

ThinkingSphinx::Index.define 'spree/product', :with => :active_record do
   ...
end
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top