def routes(rails_router)
      load!
      Router.new(router: rails_router, namespaces: namespaces).apply
    end
def routes(rails_router)
      load!
      Router.new(router: rails_router, namespaces: namespaces).apply
    end
Creates all the necessary routes for the ActiveAdmin configurations

 Use this within the routes.rb file:

   Application.routes.draw do |map|
     ActiveAdmin.routes(self)
   end

 @param rails_router [ActionDispatch::Routing::Mapper]