Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Restore the fast Numeric#blank? Closes #2714.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2853 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit f109bfb765fd54ef8bb94751c671a097089d7f53 1 parent 26311f6
@jeremy jeremy authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 activesupport/lib/active_support/core_ext/blank.rb
View
6 activesupport/lib/active_support/core_ext/blank.rb
@@ -30,3 +30,9 @@ def blank?
empty? || strip.empty?
end
end
+
+class Numeric #:nodoc:
+ def blank?
+ false
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.