lib/fozzie/rails/middleware.rb in fozzie-0.0.15 vs lib/fozzie/rails/middleware.rb in fozzie-0.0.16
- old
+ new
@@ -1,10 +1,14 @@
require 'fozzie/rack/middleware'
module Fozzie
module Rails
+
+ # Time and record each request through a given Rails app
+ # This middlewware times server processing for a resource, not view render.
class Middleware < Fozzie::Rack::Middleware
+ # Generates the statistics key for the current path
def generate_key(env)
path_str = env['PATH_INFO']
return nil unless path_str
begin
\ No newline at end of file