Common Design Patterns in Rails
1. Service Objects
- Location:
app/services - Structure
2. Decorator
- Commonly used with draper gem: https://github.com/drapergem/draper
- Methods that are used on views, but present in Model can be moved to Decorator.
- Presenter also does same.
TODO: more design patterns
Check:#
- Service Objects