Esparta :ruby:<p>Wide Models and Active Record custom validation contexts, by <span class="h-card" translate="no"><a href="https://ruby.social/@bensheldon" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>bensheldon</span></a></span></p><p><a href="https://island94.org/2025/04/wide-models-and-active-record-custom-validation-contexts" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">island94.org/2025/04/wide-mode</span><span class="invisible">ls-and-active-record-custom-validation-contexts</span></a></p><p>> This post is a brief description of a pattern I use a lot using when building features in Ruby on Rails apps and that I think needed a name:</p><p>> Wide Models have many attributes (columns in the database) that are updated in multiple places in the application, but not always all at once i.e. different forms will update different subsets of attributes on the same model.</p><p><a href="https://ruby.social/tags/ruby" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ruby</span></a> <a href="https://ruby.social/tags/ActiveRecord" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ActiveRecord</span></a></p>