diff options
author | Caley Woods <caley.w@gmail.com> | 2011-05-06 08:23:12 -0700 |
---|---|---|
committer | Caley Woods <caley.w@gmail.com> | 2011-05-06 08:23:12 -0700 |
commit | a4b6e3d9be338e93320606f7cb14759b26ced8df (patch) | |
tree | 08c4f4012ac572c11c5940a604eeb4e43b350d05 /activesupport | |
parent | 9f9446f27110a0d55462edd76df55ab1a67414c6 (diff) | |
download | rails-a4b6e3d9be338e93320606f7cb14759b26ced8df.tar.gz rails-a4b6e3d9be338e93320606f7cb14759b26ced8df.tar.bz2 rails-a4b6e3d9be338e93320606f7cb14759b26ced8df.zip |
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.
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/core_ext/object/blank.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/object/blank.rb b/activesupport/lib/active_support/core_ext/object/blank.rb index 20085c4fb3..d756b8cca0 100644 --- a/activesupport/lib/active_support/core_ext/object/blank.rb +++ b/activesupport/lib/active_support/core_ext/object/blank.rb @@ -4,7 +4,7 @@ class Object # # This simplifies: # - # if !address.nil? && !address.empty? + # if !address.nil? || !address.empty? # # ...to: # |