Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

Confusion regarding EMPTY_MIDDLEWARE #2

Closed
@tdreyno

Description

@tdreyno

Hi, I'm a little confused about how EMPTY_MIDDLEWARE works. It's empty and therefore returns nil. Since it runs last, it makes all of my stacks return nil instead of their current env.

I'm doing the following in my code to work around this:

::Middleware::Runner.const_set :EMPTY_MIDDLEWARE, lambda { |env| env }

Am I misunderstanding something? Doing the whole stack backwards?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions