Forum: Ruby on Rails calendar with different types of event - polymorphism

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Tarscher (Guest)
on 2008-11-29 22:12
(Received via mailing list)
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?

This topic is locked and can not be replied to.