Sha256: a7b2704705dbf943826de1101d39d7681a231376c19c159c007c2c63ce0c35ae
Contents?: true
Size: 730 Bytes
Versions: 4
Compression:
Stored size: 730 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 #TODO #this will be removed once rails 3.2 adds the ability to set the order of engine loading engine = self config.to_prepare do ErpBaseErpSvcs.register_compass_ae_engine(engine) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
erp_products-3.0.4 | lib/erp_products/engine.rb |
erp_products-3.0.3 | lib/erp_products/engine.rb |
erp_products-3.0.2 | lib/erp_products/engine.rb |
erp_products-3.0.1 | lib/erp_products/engine.rb |