SACRAMENTO, Calif. — California's governor has signed into law a bill that guarantees all students a state-funded meal of their choice, even if their parent or guardian has unpaid meal fees.

RELATED: High School turns down free Chick-fil-A lunch 'out of respect to our LGBTQ staff'

The measure bans the practice of "lunch shaming," in which students who owe the school money for meals are denied food or given a cheaper alternative meal.

In a statement Saturday, Gov. Gavin Newsom thanked Ryan Kyote, a third-grader at an elementary school in Napa County who brought national attention to the practice earlier this year by paying for all the food service bills of his fellow students at the school.

Under the new law, a school can no longer give a student a cheaper alternative meal.

"I want to thank Ryan for his empathy and his courage in bringing awareness to this important issue," Newsom said.

RELATED: New York City considering ban on chocolate milk in schools


Last bills of 2019 heading to Gov. Gavin Newsom's desk. Here's 6 to watch.