Stop this, use this instead : Top 5 best practices in Ruby to reduce "if" in your code
Table of Contents    1. Inject dependency instead of sending a boolean   2. Use a NilObject...
Tags: ruby, rails, programming, tutorial