cover

Model Structure Done Right

March 2 at 8:31 PM
I have been writing Ruby on Rails apps for almost a decade now and I've come to notice that my speed of development inversely scales with how many decisions I have to make. A lot of these decisions come down to lack of structure. As great as figuring out things can feel, reaching the point where you're comfortable with the final design really is a good feeling.
Today I want to share with you, my opinionated best practices of building good ActiveRecord models.
<script src="https://gist.github.com/Nitemaeric/3eb337823741b23b0ecc01f7d51fac23.js"></script>