excid3 / simple_calendar

A wonderfully simple calendar gem for Rails
http://excid3.github.io/simple_calendar
MIT License
1.58k stars 268 forks source link

Using 2 tables on a single simple calendar #200

Closed mosesliao closed 6 years ago

mosesliao commented 6 years ago

Hi. I have 2 models. Leave and time_logs. When an employee did take leave, he/she did not clock hours in the time log and i want both to show in the calendar. How do I do that?

excid3 commented 6 years ago

Just combine them into an array and pass them in as events. You can check the type in your render block.