delicious

7 Patterns to Refactor Fat ActiveRecord Models

A murb'ed feed, posted almost 10 years ago filed in tutorial, programming, ruby, rails, rubyonrails, model & explanation.

As your Rails-application grows you’ll quickly find, when you’re holding on to the MVC pattern Rails imposes on you, that your model objects grow large. Although conventional wisdom tells us that models are supposed to grow, fat models are a problem. In this article the creators of code climate explain that without resorting to the move-your-trash-elsewhere-include-mechanism of concerns (just kidding ;) )

Go to the original link.