carouselapps_table_builder icon indicating copy to clipboard operation
carouselapps_table_builder copied to clipboard

Allow one or multiple methods to the :day_methods option.

Open marclipovsky opened this issue 12 years ago • 0 comments

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!

marclipovsky avatar Aug 28 '12 04:08 marclipovsky