-
Jean Boussier authored
Fix: https://github.com/rails/rails/pull/49780 Fix: https://github.com/rails/rails/issues/49761 `CollectionRenderer` implictly inject `<name>_counter` and `<name>_iteration` locals, but in the overwhelming majority of cases they aren't used. So when the rendered template has strict locals we shouldn't require these to be declared, and if they aren't we should simply not pass them. Co-Authored-By:
HolyWalley <yakau@hey.com>
Jean Boussier authoredFix: https://github.com/rails/rails/pull/49780 Fix: https://github.com/rails/rails/issues/49761 `CollectionRenderer` implictly inject `<name>_counter` and `<name>_iteration` locals, but in the overwhelming majority of cases they aren't used. So when the rendered template has strict locals we shouldn't require these to be declared, and if they aren't we should simply not pass them. Co-Authored-By:
HolyWalley <yakau@hey.com>
Loading