aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-06-01 00:23:08 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-06-01 00:23:08 +0000
commit24a5a803f3d01d1b6d72e1fb22a97b3922848cae (patch)
treead9d828ce48f241f9011104010c172af12424ffd /activesupport
parentce99c87551c46ede3f7780282f9156d40a251a03 (diff)
downloadrails-24a5a803f3d01d1b6d72e1fb22a97b3922848cae.tar.gz
rails-24a5a803f3d01d1b6d72e1fb22a97b3922848cae.tar.bz2
rails-24a5a803f3d01d1b6d72e1fb22a97b3922848cae.zip
Oracle and others wont take a string null for an answer
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4389 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/core_ext/array/conversions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/array/conversions.rb b/activesupport/lib/active_support/core_ext/array/conversions.rb
index 35d010b164..7ccc63b31d 100644
--- a/activesupport/lib/active_support/core_ext/array/conversions.rb
+++ b/activesupport/lib/active_support/core_ext/array/conversions.rb
@@ -35,7 +35,7 @@ module ActiveSupport #:nodoc:
case format
when :db
if respond_to?(:empty?) && self.empty?
- "null"
+ "0"
else
collect { |element| element.id }.join(",")
end