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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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?

Thanks
Stijn
This topic is locked and can not be replied to.