lib/spree_zoned/engine.rb in spree_zoned-0.5.26 vs lib/spree_zoned/engine.rb in spree_zoned-0.5.27

- old
+ new

@@ -11,9 +11,12 @@ g.test_framework :rspec end # load all decorators def self.activate + if Spree::Config.instance + Spree::Config[:auto_capture] = true + end Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/*_decorator*.rb')) do |c| Rails.configuration.cache_classes ? require(c) : load(c) end end