-
Notifications
You must be signed in to change notification settings - Fork 443
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
Raise error uncountable slot names in plural slots #1904
Raise error uncountable slot names in plural slots #1904
Conversation
@hchtlz I credited you with me in the change log because you discovered this issue and gave us a failing test to work with |
@reeganviljoen Thank you for the credit in the changelog. I was delighted to contribute to solving this issue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great fix, thanks!
Actually, I think this would have been problematic in a previous API. Is that still the case for this iteration of slots? Would we expect
Which seems fine, unless I'm missing something here. In the example failure we shouldn't be calling |
Ahhhh, we do still need this because of the extra methods we define: view_component/lib/view_component/slotable.rb Lines 169 to 185 in 122604c
|
* Raise error when uncountable slot names are used in `renders_many` *Hugo Chantelauze* *Reegan Viljoen*
* Raise error when uncountable slot names are used in `renders_many` *Hugo Chantelauze* *Reegan Viljoen*
closes #1903
What are you trying to accomplish?
This Attempts to fix the bellow bug by raising an error when a plural slot is used with an uncountable name