Sha256: e40aeb6fb5514f619dee59584a71b7da4e738624cfd8a3e05554c5a34db0158d

Contents?: true

Size: 584 Bytes

Versions: 5

Compression:

Stored size: 584 Bytes

Contents

module ErpOrders
  class Engine < Rails::Engine
    isolate_namespace ErpOrders
    
    initializer "erp_orders_assets.merge_public" do |app|
      app.middleware.insert_before Rack::Lock, ::ActionDispatch::Static, "#{root}/public"
    end
	  
	  ActiveSupport.on_load(:active_record) do
      include ErpOrders::Extensions::ActiveRecord::ActsAsOrderTxn
    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

5 entries across 5 versions & 1 rubygems

Version Path
erp_orders-3.0.5 lib/erp_orders/engine.rb
erp_orders-3.0.4 lib/erp_orders/engine.rb
erp_orders-3.0.3 lib/erp_orders/engine.rb
erp_orders-3.0.2 lib/erp_orders/engine.rb
erp_orders-3.0.1 lib/erp_orders/engine.rb