1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Restore the fast Numeric#blank? Closes #2714.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2853 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jeremy Kemper 2005-11-03 01:32:25 +00:00
parent 26311f6cd0
commit f109bfb765

View file

@ -30,3 +30,9 @@ class String #:nodoc:
empty? || strip.empty?
end
end
class Numeric #:nodoc:
def blank?
false
end
end