Object
# File lib/rack/contrib/time_zone.rb, line 12 def initialize(app) @app = app end
# File lib/rack/contrib/time_zone.rb, line 16 def call(env) request = Rack::Request.new(env) if utc_offset = request.cookies["utc_offset"] env["rack.timezone.utc_offset"] = -(utc_offset.to_i * 60) end @app.call(env) end
[Validate]
Generated with the Darkfish Rdoc Generator 2.