rails/rails — pull request #17784 by bruno- (2014-11-26 12:31:04+00:00)
Title: Refactor nested if

Small refactoring so that it avoids nested `if` statement.