Skip to content

No public replacement for custom inheritable namespace settings in Grape 4.0? #2979

Description

@olivier-thatch

Hi,

While bumping the grape gem from 3.3 to 4.0 in our app, we noticed that inheritable_setting is no longer exposed.

AFAICT, Grape 4.0 no longer exposes any mechanism to let users define inheritable namespace settings? Is that correct? Is that intended?

There's a very unclear paragraph in UPGRADING.md, and the source code mentions "the nesting behaviour DSL::Settings#namespace_setting is specified to have", but I still have no clue what that behavior actually is.

For now we're working around this issue by manually traversing the parent chain. While it's only a few lines of code, it is kind of annoying that we have to do this... particularly when Grape used to do it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions