From f109bfb765fd54ef8bb94751c671a097089d7f53 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Thu, 3 Nov 2005 01:32:25 +0000 Subject: Restore the fast Numeric#blank? Closes #2714. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2853 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/lib/active_support/core_ext/blank.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'activesupport/lib') 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 -- cgit v1.2.3