In this article, I will talk about a refactoring called replace conditional
with
polymorphism
[https://thoughtbot.com/blog/refactoring-replace-conditional-with-polymorphism]
that we did recently at Kactus. By the end of the article, you will be able to
identify probably many places where you could use this technique in your Rails
application.