Skip to content
This repository was archived by the owner on Mar 27, 2020. It is now read-only.

Allow one or multiple methods to the :day_methods option.#13

Open
exceptionraiser wants to merge 1 commit into
pupeno:masterfrom
exceptionraiser:master
Open

Allow one or multiple methods to the :day_methods option.#13
exceptionraiser wants to merge 1 commit into
pupeno:masterfrom
exceptionraiser:master

Conversation

@exceptionraiser
Copy link
Copy Markdown

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!

Comment thread README.md
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry you can leave out this line.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant