module ErpInvoicing class Engine < Rails::Engine isolate_namespace ErpInvoicing initializer "erp_invoicing.merge_public" do |app| app.middleware.insert_before Rack::Lock, ::ActionDispatch::Static, "#{root}/public" end end end