I actually found a gem that does exactly that. I'm rolling back those changes and switch to using that gem instead. 
Just in case you ever need it: https://github.com/dazuma/versionomy