concord-consortium/rigse — pull request #15 by pjmorse (2012-10-22 13:48:46+00:00)
Title: Moves lists of Embeddables into a constant.

Several models define arrays of Embeddable models (actually, the constants that name them) and iterate over those arrays to define their has_many_x relationships with those elements. I've defined two constants which contain strings representing those Embeddables in an initializer, then iterated over that constant in the model definitions. Modification of the list of embeddables can therefore be done in just one place.

Another commit in the pipeline to extend this pattern to the Page and User models.

@scytacki @knowuh @stepheneb