Sha256: c9dfb5eeb319b54f874c89a632ce8916791a7520112ab1c9503de45f93295454
Contents?: true
Size: 490 Bytes
Versions: 33
Compression:
Stored size: 490 Bytes
Contents
module Locomotive::Steam module Middlewares class DefaultEnv attr_accessor_initialize :app def call(env) request = Rack::Request.new(env) env['steam.request'] = request env['steam.services'] = build_services(request) env['steam.liquid_assigns'] = {} app.call(env) end private def build_services(request) Locomotive::Steam::Services.build_instance(request) end end end end
Version data entries
33 entries across 33 versions & 1 rubygems