diff options
author | Xavier Noria <fxn@hashref.com> | 2011-05-06 17:30:00 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-05-06 17:30:00 +0200 |
commit | ef2738472d5c9e6e561d97c9fadbad6b3863017f (patch) | |
tree | fa96c4ea908ed553e6b43f384f601eeeab22374a /tools | |
parent | a4b6e3d9be338e93320606f7cb14759b26ced8df (diff) | |
download | rails-ef2738472d5c9e6e561d97c9fadbad6b3863017f.tar.gz rails-ef2738472d5c9e6e561d97c9fadbad6b3863017f.tar.bz2 rails-ef2738472d5c9e6e561d97c9fadbad6b3863017f.zip |
Revert "Small edit to the if statement simplification for blank? on the Object class. An Object doesn't need to be nil and empty to be blank? just one or the other."
Reason: the original code is correct, see
!nil && !empty -> !(nil || empty) -> !blank
That said, this example has too many negations
for my linking. Think should be revised to be
more positive and straightforward to read.
This reverts commit a4b6e3d9be338e93320606f7cb14759b26ced8df.
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions