Sha256: 4add13db37f479323af2c94fccb22f270495736d27000040e72fab0de98bb2ee

Contents?: true

Size: 524 Bytes

Versions: 1

Compression:

Stored size: 524 Bytes

Contents

module ErpProducts
  class Engine < Rails::Engine
    isolate_namespace ErpProducts
	
	  initializer "erp_products.merge_public" do |app|
      app.middleware.insert_before Rack::Lock, ::ActionDispatch::Static, "#{root}/public"
    end
	  
	  ActiveSupport.on_load(:active_record) do
      include ErpProducts::Extensions::ActiveRecord::ActsAsProductInstance
      include ErpProducts::Extensions::ActiveRecord::ActsAsProductOffer
	    include ErpProducts::Extensions::ActiveRecord::ActsAsProductType
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
erp_products-3.0.0 lib/erp_products/engine.rb