Sha256: 20627d1a6c0e6ddbb039f677b4f214896656dfac0d881364e1933f83c3a45f0e
Contents?: true
Size: 743 Bytes
Versions: 2
Compression:
Stored size: 743 Bytes
Contents
module SpreeWinkelstraat class Engine < Rails::Engine require 'spree/core' isolate_namespace Spree engine_name 'spree_winkelstraat' # use rspec for tests config.generators do |g| g.test_framework :rspec end def self.activate Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/*_decorator*.rb')) do |c| Rails.configuration.cache_classes ? require(c) : load(c) end Rails.application.config.spree.promotions.rules << Spree::Promotion::Rules::NotWinkelstraatOrder end Spree::PermittedAttributes.option_value_attributes << :ws_code Spree::PermittedAttributes.product_attributes << :sell_on_winkelstraat config.to_prepare &method(:activate).to_proc end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_winkelstraat-3.1.0.21 | lib/spree_winkelstraat/engine.rb |
spree_winkelstraat-3.1.0.20 | lib/spree_winkelstraat/engine.rb |