You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# An object is blank if it's false, empty, or a whitespace string.# For example, '', ' ', +nil+, [], and {} are all blank.## This simplifies## address.nil? || address.empty?## to## address.blank?## @return [true, false]defblank?respond_to?(:empty?) ? !!empty? : !selfend
# An object is blank if it's false, empty, or a whitespace string.# For example, false, '', ' ', +nil+, [], and {} are all blank.## This simplifies## !address || address.empty?## to## address.blank?## @return [true, false]
thoughts?
The text was updated successfully, but these errors were encountered:
In the code currently we have
https://github.com/rails/rails/blob/master/activesupport/lib/active_support/core_ext/object/blank.rb#L15
either the blank? function needs to change to
or the description needs to be updated to
thoughts?
The text was updated successfully, but these errors were encountered: