hanami / view

Views, templates and presenters for Ruby web applications
http://hanamirb.org
MIT License
173 stars 80 forks source link

Guard on Array of names being provided with singular value #185

Closed adam12 closed 1 year ago

adam12 commented 3 years ago

A singular value will trigger the constantization of the names Array, which returns an invalid result. The user likely wanted to decorate an Array-like collection if they were manually providing an array of names through the as option.