我已经尝试了大多数解决方案,例如require_dependency
添加和启用文件夹,但仍然没有骰子。autoload
application.rb
lib
这是我的应用程序的设置方式:
我有lib/index_tank_searcher.rb
:
class IndexTankSearcher < Spree::Core::Search::Base
def method
end
end
我Spree::Config.searcher_class = IndexTankSearcher
在config/intializers/spree.rb
.
关于如何确保index_tank_searcher.rb
自动重新加载而不在每次更改时重新启动服务器的任何想法?