Sha256: 58260da01219da544be1ac713d33d3c023464f6f2a18c4515a8c179a2d31656a
Contents?: true
Size: 354 Bytes
Versions: 37
Compression:
Stored size: 354 Bytes
Contents
module Scrivito class WorkspaceSelectionMiddleware def initialize(app) @app = app end def call(env) Workspace.current = proc do env[EditingContextMiddleware::ENVKEY].visible_workspace end @app.call(env) end private def session(env) env[Rack::Session::Abstract::ENV_SESSION_KEY] end end end # module Scrivito
Version data entries
37 entries across 37 versions & 1 rubygems