Sha256: e2103aac5db430b551994550fba279360a33bdf5a53b6e26384ea776f67ec8a9
Contents?: true
Size: 456 Bytes
Versions: 13
Compression:
Stored size: 456 Bytes
Contents
module Locomotive module Steam class CookieService def initialize(request) @request = request request.env['steam.cookies'] ||= {} @cookies = request.env['steam.cookies'] end def set(key, vals) @cookies[key] = vals end def get(key) if @cookies.include?(key) @cookies[key]['value'] else @request.cookies[key] end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems