aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2015-09-02 19:07:53 +0200
committerYves Senn <yves.senn@gmail.com>2015-09-02 19:07:53 +0200
commitd463b24f157dcb126c9e47bd7da18f6f25115e97 (patch)
treeb8e0391ba2dd7dd92e62edd1378c42dcc711cd9d /activesupport
parent3dd7cecfe30c425052d6414301ea1c8295c58c26 (diff)
downloadrails-d463b24f157dcb126c9e47bd7da18f6f25115e97.tar.gz
rails-d463b24f157dcb126c9e47bd7da18f6f25115e97.tar.bz2
rails-d463b24f157dcb126c9e47bd7da18f6f25115e97.zip
docs, make `blank?` behavior clear. Closes #21468. [ci skip]
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/core_ext/object/blank.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/object/blank.rb b/activesupport/lib/active_support/core_ext/object/blank.rb
index 38e43478df..548c91638c 100644
--- a/activesupport/lib/active_support/core_ext/object/blank.rb
+++ b/activesupport/lib/active_support/core_ext/object/blank.rb
@@ -2,11 +2,11 @@
class Object
# An object is blank if it's false, empty, or a whitespace string.
- # For example, '', ' ', +nil+, [], and {} are all blank.
+ # For example, +false+, '', ' ', +nil+, [], and {} are all blank.
#
# This simplifies
#
- # address.nil? || address.empty?
+ # !address || address.empty?
#
# to
#