watu/table_builder — pull request #13 by marclipovsky (2012-08-28 04:32:08+00:00)
Title: 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!