Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rynonl opened this issue Nov 1, 2016 · 0 comments
Open

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

rynonl opened this issue Nov 1, 2016 · 0 comments

Comments

@rynonl
Copy link
Contributor

rynonl commented Nov 1, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant