Please sign in to comment.
Prevent the silent destruction of user input
Rather than silently changing what was specified to be the collection for this partial, this will call `to_ary` on whatever is passed. This has a few benefits for the developer: * Knowledge that the collection should implement `to_ary` if it doesn't. * Principle of least surprise as, rather than the partial not being rendered at all, an exception gets raised.
- Loading branch information...
Showing with 1 addition and 2 deletions.