From 6a5388b6549cb88fd19ff7ea2c48be1210a6e1cb Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Fri, 29 Dec 2006 19:05:53 +0000 Subject: try to appease the angry Oracle git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5808 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/lib/active_record/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record/base.rb') diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 26010d8643..a4c317ff3f 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -1979,7 +1979,7 @@ module ActiveRecord #:nodoc: else column = self.class.columns_hash[attr_name] if column.nil? - if value !~ /[^0-9]/ + if Numeric === value || value !~ /[^0-9]/ !value.to_i.zero? else !value.blank? -- cgit v1.2.3