https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292011-03-04T06:22:45ZRedmineRedmine - Patch #7770: use unless in control structures where it improves readabilityhttps://www.redmine.org/issues/7770?journal_id=259002011-03-04T06:22:45ZJean-Baptiste Barth
<ul></ul><p>I think <code>if blah.present?</code> is easier to read than <code>unless blah.blank?</code> or <code>if !blah.blank?</code>, so we might switch to this in some cases you point out.</p> Redmine - Patch #7770: use unless in control structures where it improves readabilityhttps://www.redmine.org/issues/7770?journal_id=259162011-03-04T13:31:31ZAnonymous
<ul></ul><p>yes that does makes more sense indeed. I looked it up <a href="http://api.rubyonrails.org/classes/Object.html#method-i-present-3F" class="external">here</a> , <strong>present?</strong> is internally defined as <strong>!blank?</strong></p>