carouselapps_table_builder
carouselapps_table_builder copied to clipboard
Allow one or multiple methods to the :day_methods option.
This is great if you start and end dates on your object. I feel like this is a wanted feature out there.
You can do either:
<%= t.day(:day_method => :calendar_date) do |day, tasks| %>
Or you can pass an array:
<%= t.day(:day_method => [:start_date, :end_date]) do |day, tasks| %>
I figured rather than forcing people to switch to an array (even if they had one method on the :day_method), they can update this gem without having to change their code.
Thanks!