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