test_track_rails_client icon indicating copy to clipboard operation
test_track_rails_client copied to clipboard

#vary allows specifying a default that is already handled

Open rynonl opened this issue 9 years ago • 0 comments

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.

rynonl avatar Nov 01 '16 14:11 rynonl