2013-06-03 23 views
0

我似乎无法获得spree中的范围示例工作。 https://github.com/spree/spree/blob/89cb914efb16eabc4f790c018c0a747a61d55aee/core/app/models/spree/product/scopes.rb如何单独调用搜索范围的大礼包

1.9.3p429 :021 > Spree::Product.taxons_id_eq(1) 
NoMethodError: undefined method `taxons_id_eq' for #<Class:0x007fb583e8d5d8> 

而且当该搜索被称为?

https://github.com/spree/spree/blob/89cb914efb16eabc4f790c018c0a747a61d55aee/core/lib/spree/core/search/base.rb#L44

我试图把一个调试器断点大礼包::核心::基地::搜索的第44行,但我无法检索类搜索变量。

更新:看来,所有其他搜索范围工作,但只是该方法没有定义。

回答