Class: SolidusMarketplace::Engine

Inherits:
Rails::Engine
  • Object
show all
Defined in:
lib/solidus_marketplace/engine.rb

Class Method Summary collapse

Class Method Details

.activateObject



44
45
46
47
48
49
# File 'lib/solidus_marketplace/engine.rb', line 44

def self.activate
  Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/*_decorator*.rb')) do |c|
    Rails.configuration.cache_classes ? require(c) : load(c)
  end
  Spree::Ability.register_ability(Spree::SupplierAbility)
end