vendor/plugins/newrelic_rpm/lib/newrelic/local_environment.rb
# this case covers starting by mongrel_rails
this case covers starting by mongrel_rails
this case covers starting by mongrel_rails
def check_for_mongrel
      if defined? Mongrel::HttpServer
        ObjectSpace.each_object(Mongrel::HttpServer) do |mongrel|
          next if not mongrel.respond_to? :port
          @environment = :mongrel
          @identifier = mongrel.port
        end
      end
    end
def check_for_mongrel if defined? Mongrel :: HttpServer ObjectSpace . each_object ( Mongrel :: HttpServer ) do | mongrel | next if not mongrel . respond_to? :port @environment = :mongrel @identifier = mongrel . port end end end
this case covers starting by mongrel_rails
this case covers starting by mongrel_rails