7 Ways to Decompose Fat ActiveRecord Models – Code Climate Blog
Oct 17, 2012
This is a great article about decomposing “Fat Models”. It advises against extracting methods into mixins and instead proposes the following refactorings:
- Value Objects
- Services Objects
- Form Objects (using Virtus)
- Query Objects
- View Objects
- Policy Objects
- Decorators
Link: 7 Ways to Decompose Fat ActiveRecord Models – Code Climate Blog via blog.codeclimate.com