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:
parent
26311f6cd0
commit
f109bfb765
1 changed files with 6 additions and 0 deletions
|
@ -30,3 +30,9 @@ class String #:nodoc:
|
|||
empty? || strip.empty?
|
||||
end
|
||||
end
|
||||
|
||||
class Numeric #:nodoc:
|
||||
def blank?
|
||||
false
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue