Have you ever looked back on your code and thought “Who wrote this! ….<git blame>…oh…it was me.” We are all constantly learning new things and frankly our past self is just not as smart as our current self (or so we think). So today I want to walk through a simple refactor I did on a Rails project I have worked on over the years.