Refactored using the rubocop gem. It was fairly intuitive once I removed some of the stuff from tracking that wasn't needed. I cleaned up everything starting with the spec tests and then went from the controllers down and just tried to see what could be changed and refactored. Some of the suggestions were helpful and useful to see how to reorient if else statements more cleanly.
Refactored using the rubocop gem. It was fairly intuitive once I removed some of the stuff from tracking that wasn't needed. I cleaned up everything starting with the spec tests and then went from the controllers down and just tried to see what could be changed and refactored. Some of the suggestions were helpful and useful to see how to reorient if else statements more cleanly.