ActiveRecord Aggregations with composed_of Discussion
Discussion for
ActiveRecord Aggregations with composed_of
I don't see this feature used often in Rails apps, but it's super powerful for things like this. An easy way of creating Ruby objects like this allows you to really organize functionality instead of stuffing it all in models.