Skip to content

Variable mapping: Allow In(:strict) #52

@apotonick

Description

@apotonick

When using In() => {:model => :internal_name} there's no implicit check if ctx[:model] was actually set for the incoming ctx.

Maybe a strict mode like

In(strict: true) => {:model => :internal_name}

would make :model a required keyword in the automatically created filter proc (although I don't know how to do this without meta-programming :brrrr:).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions