Object
Rack middleware to use common cookies across domain and subdomains.
# File lib/rack/contrib/common_cookies.rb, line 8 def initialize(app) @app = app end
# File lib/rack/contrib/common_cookies.rb, line 12 def call(env) @app.call(env).tap do |(status, headers, response)| @host = env['HTTP_HOST'].sub PORT, '' share_cookie headers end end
[Validate]
Generated with the Darkfish Rdoc Generator 2.