class Rails::Application::RoutesReloader

def updater

def updater
  @updater ||= begin
    dirs = @external_routes.each_with_object({}) do |dir, hash|
      hash[dir.to_s] = %w(rb)
    end
    ActiveSupport::FileUpdateChecker.new(paths, dirs) { reload! }
  end
end