Skip to content

#vary allows specifying a default that is already handled #8

Open
@rynonl

Description

@rynonl

Ex:

.vary :split_name, context: 'foo' do |v|
  v.when :variant1, :variant2 do
    ...
  end
  v.default :variant1 do
    ...
  end
end

the behavior here is unclear for visitors assigned variant1, it's likely we should not allow the default to be specified in another when.

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