Sha256: e17653646beef97a3e8514ed2ce56d43587bd5204a38095ebd5f31bb876403cf
Contents?: true
Size: 684 Bytes
Versions: 2
Compression:
Stored size: 684 Bytes
Contents
module SpreeProductAssembly class Engine < Rails::Engine engine_name 'spree_product_assembly' config.autoload_paths += %W(#{config.root}/lib) def self.activate Dir.glob(File.join(File.dirname(__FILE__), "../../app/**/*_decorator.rb")) do |c| Rails.configuration.cache_classes ? require(c) : load(c) end if ::Rails::Engine.subclasses.map(&:name).include? "Spree::Wombat::Engine" Dir.glob(File.join(File.dirname(__FILE__), "../../lib/**/*_serializer.rb")) do |serializer| Rails.env.production? ? require(serializer) : load(serializer) end end end config.to_prepare &method(:activate).to_proc end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_product_bundle-1.0.1 | lib/spree_product_assembly/engine.rb |
solidus_product_bundle-1.0.0 | lib/spree_product_assembly/engine.rb |