Sha256: 648231aad810c6ad70b2c2c2c1bc86ba4816533d24366d85b88fa9b4a68067df
Contents?: true
Size: 162 Bytes
Versions: 1
Compression:
Stored size: 162 Bytes
Contents
module Jellyfish class Rewrite < Struct.new(:app, :to) def call env app.call(env.merge('PATH_INFO' => "#{to}#{env['PATH_INFO']}")) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jellyfish-1.2.2 | lib/jellyfish/rewrite.rb |