Sha256: 2a7de6a3ae4c754070d2b4532db87578abab3af78d9f7531728dc313d3225abb
Contents?: true
Size: 366 Bytes
Versions: 1
Compression:
Stored size: 366 Bytes
Contents
require 'rack/null_session/version' module Rack class NullSession class DumbHash < Hash def []= key,value super key.to_s, value end def [] key super key.to_s end end def initialize app @app = app end def call env @app.call ({ "rack.session" => DumbHash.new }).merge env end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rack-nullsession-0.0.1 | lib/rack/null_session.rb |