refinery / refinerycms-calendar

Refinery CMS Events Engine
http://refinerycms.com
69 stars 73 forks source link

single_day? and multi_day? methods #3

Closed mdoel closed 13 years ago

mdoel commented 13 years ago

I added methods for detecting if an event is on a single day or covers multiple days. Useful in case you want to show "When: 7pm-9m on 6/23" versus "June 23 through June 28" in your views.

Note that the spec file for events appears to depend on files outside the gem itself, so I could not run the tests before starting. If desired, I'd be happy to do my best to add the specs anyway for your use in local testing.

joemsak commented 13 years ago

Hell yeah!