# Calendar with different types of event - polymorphism

**URL:** <https://www.ruby-forum.com/t/calendar-with-different-types-of-event-polymorphism/154450>\
**Category:** Rails\
**Created:** [November 29, 2008, 9:12pm UTC](https://www.ruby-forum.com/t/calendar-with-different-types-of-event-polymorphism/154450 "2008-11-29T21:12:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tarscher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Post date:** [November 29, 2008, 9:12pm UTC](https://www.ruby-forum.com/t/calendar-with-different-types-of-event-polymorphism/154450/1 "2008-11-29T21:12:47Z")

</div>

Hi all,

I have a calendar. The calendar has different kinds of events. Each  
event type has additional information so i think i need a new model  
for each new event type. eg: a game event has additional oponent and  
oponents colors info. Is this best solved via polymorphism where I  
create an eventable interface?

Thanks  
Stijn
