Skip to content

Params 'as' option not accessible within 'given' block proc #1808

Closed
@Asafb26

Description

@Asafb26

It seems like we cannot access to the value inside the proc for an alias param

requires :type,   as: :action
given type: ->(val) { ActionService::ACTIONS.include?(val) } do #val not present inside the proc
  requires :comment, type: String
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions