Sha256: d074d665d2a63f7dcfaf7c51ba94427751d0a0200ee85fe8888b13a6a38cc057
Contents?: true
Size: 231 Bytes
Versions: 29
Compression:
Stored size: 231 Bytes
Contents
class RedirectLegacyProductUrl def initialize(app) @app = app end def call(env) if env["PATH_INFO"] =~ %r{/t/.+/p/(.+)} return [301, {'Location'=> "/products/#{$1}" }, []] end @app.call(env) end end
Version data entries
29 entries across 29 versions & 6 rubygems