Sha256: 402a772c2074c5170cc25c3887dd431736a3b033770b12cbc7f03a1fb658ba08

Contents?: true

Size: 356 Bytes

Versions: 1

Compression:

Stored size: 356 Bytes

Contents

require 'fozzie/rack/middleware'

module Fozzie
  module Rails
    class Middleware < Fozzie::Rack::Middleware

      def generate_key(env)
        s = env['PATH_INFO']
        return nil if s.nil?
        path = ActionController::Routing::Routes.recognize_path(s)
        [path[:controller], path[:action], "render"].join('.')
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fozzie-0.0.6 lib/fozzie/rails/middleware.rb