Category: Rails

You need Ensurance

Been plowing through a massive refactoring of a legacy Rails app.   One of the things I find myself doing all the time now is ensuring.  It’s a handy little concern that works like this: In the old days, we’d do this: class SomeClass def some_method(person_id) person = Person.find(person_id)   # then proceed to do […]