aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/blank.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2005-11-03 01:32:25 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2005-11-03 01:32:25 +0000
commitf109bfb765fd54ef8bb94751c671a097089d7f53 (patch)
tree3b0d328f34865e9b24108454739d59667246882f /activesupport/lib/active_support/core_ext/blank.rb
parent26311f6cd09bb390f878b23a233679b874411208 (diff)
downloadrails-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/core_ext/blank.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/blank.rb6
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