Skip to content

Commit

Permalink
Small edit to the if statement simplification for blank? on the Objec…
Browse files Browse the repository at this point in the history
…t class. An Object doesn't need to be nil and empty to be blank? just one or the other.
  • Loading branch information
caleywoods committed May 6, 2011
1 parent 9f9446f commit a4b6e3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/core_ext/object/blank.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Object
#
# This simplifies:
#
# if !address.nil? && !address.empty?
# if !address.nil? || !address.empty?
#
# ...to:
#
Expand Down

0 comments on commit a4b6e3d

Please sign in to comment.