Class: SpreeMultiDomain::Engine
- Inherits:
-
Rails::Engine
- Object
- Rails::Engine
- SpreeMultiDomain::Engine
- Defined in:
- lib/spree_multi_domain.rb
Class Method Summary collapse
Class Method Details
.activate ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/spree_multi_domain.rb', line 9 def self.activate #override search to make it multi-store aware Spree::Config.searcher_class = Spree::Search::MultiDomain Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c| Rails.env.production? ? require(c) : load(c) end end |