Goal
- Make an object that allows items of many forms to be attached to a
ContentModule, with some shared behavior but different data.
Context
ContentModule has to be connected to multiple types of content. These could be Links, Games, Surveys, Attachments, Videos, etc.
As the constellation of content types expands, it will probably be helpful to manage them as a group when doing things like associating them with other models (e.g. ContentModule). This issue is a starting point to grow that capability.
AC
- A name for the delegated type is agreed upon.
Attachable?
- Contentable?
Something else?
- The delegated type is defined using Rails convention.
ContentModule has_many of the delegated type.
Game and Link include the delegated type module.
Goal
ContentModule, with some shared behavior but different data.Context
ContentModulehas to be connected to multiple types of content. These could be Links, Games, Surveys, Attachments, Videos, etc.As the constellation of content types expands, it will probably be helpful to manage them as a group when doing things like associating them with other models (e.g.
ContentModule). This issue is a starting point to grow that capability.AC
Attachable?Something else?ContentModulehas_manyof the delegated type.GameandLinkinclude the delegated type module.