From a4b6e3d9be338e93320606f7cb14759b26ced8df Mon Sep 17 00:00:00 2001 From: Caley Woods Date: Fri, 6 May 2011 08:23:12 -0700 Subject: 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. --- activesupport/lib/active_support/core_ext/object/blank.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: # -- cgit v1.2.3