Sha256: 1566b6078178739bce68007d3ebde705d63c27280745d603b7949db41e70d08d

Contents?: true

Size: 306 Bytes

Versions: 3

Compression:

Stored size: 306 Bytes

Contents

module Jersey::Extensions
  module RouteSignature
    def self.registered(app)
      app.helpers do
        def route_signature
          env["ROUTE_SIGNATURE"]
        end
      end
    end

    def route(verb, path, *)
      condition { env["ROUTE_SIGNATURE"] = path.to_s }
      super
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jersey-0.2.0 lib/jersey/extensions/route_signature.rb
jersey-0.1.0 lib/jersey/extensions/route_signature.rb
jersey-0.0.3 lib/jersey/extensions/route_signature.rb