diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2005-11-03 01:32:25 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2005-11-03 01:32:25 +0000 |
commit | f109bfb765fd54ef8bb94751c671a097089d7f53 (patch) | |
tree | 3b0d328f34865e9b24108454739d59667246882f /activesupport/lib/active_support | |
parent | 26311f6cd09bb390f878b23a233679b874411208 (diff) | |
download | rails-f109bfb765fd54ef8bb94751c671a097089d7f53.tar.gz rails-f109bfb765fd54ef8bb94751c671a097089d7f53.tar.bz2 rails-f109bfb765fd54ef8bb94751c671a097089d7f53.zip |
Restore the fast Numeric#blank? Closes #2714.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2853 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/core_ext/blank.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/blank.rb b/activesupport/lib/active_support/core_ext/blank.rb index f4c0b24c25..791cdc5705 100644 --- a/activesupport/lib/active_support/core_ext/blank.rb +++ b/activesupport/lib/active_support/core_ext/blank.rb @@ -30,3 +30,9 @@ class String #:nodoc: empty? || strip.empty? end end + +class Numeric #:nodoc: + def blank? + false + end +end |