lib/fozzie/rails/middleware.rb in fozzie-0.0.13 vs lib/fozzie/rails/middleware.rb in fozzie-0.0.14
- old
+ new
@@ -9,11 +9,11 @@
return nil unless path_str
begin
routing = (rails_version == 3 ? ::Rails.application.routes : ::ActionController::Routing::Routes)
path = routing.recognize_path(path_str)
-
- [path[:controller], path[:action], "render"].join('.')
+ stat = [path[:controller], path[:action], "render"].join('.')
+ stat
rescue ActionController::RoutingError => exc
S.increment "routing.error"
nil
rescue => exc
nil
\ No newline at end of file