Extracting a tidy PORO from a messy Active Record model
09-Jan-2020 242
In 2006 Jamis Buck wrote a famous post called Skinny Controller, Fat Model. In it Jamis observed that Rails developers often put too much logic in controllers, making the code harder to understand and to test than it needs to be.“Skinny controllers, fat models” became a piece of accepted wisdom in the Rails community. I think it was a genuine step forward in the overall state of affairs.
Extracting a tidy PORO from a messy Active Record model #ruby #rubydeveloper #rubyonrails #Extracting #messy #Active #Record #model #active #record https://rubyonrails.ba/link/extracting-a-tidy-poro-from-a-messy-active-record-model