--- title: 'This pattern is brilliant and can make your code much more clean and consistent' tweet_id: '1468596267458588676' thread_slug: weekly-thread-2021-49 author_username: LiamHammett images: - 'https://pbs.twimg.com/media/EX1RMP1X0AApuv6.jpg' created_at: 2021-12-08T15:00:10+00:00 slug: this-pattern-is-brilliant-and-can-make-your-code-much-more-clean-and-consistent --- 🔥 I often find myself keeping validation rules in a method on the model. This lets me reuse them wherever I may need - including in controllers or form requests.