by pmontra · 1y ago · 0 comments
<td class="<%= teacher.colour_coded_availability %>">
there would be <td class="<%= colour_coded_availability(teacher) %>">
but no metaprogramming, no decorators/ directory, no new concepts, only standard plain Rails. As a bonus it's even an instance of functional programming.