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
This commit is contained in:
David Heinemeier Hansson
2006-06-01 00:23:08 +00:00
parent ce99c87551
commit 24a5a803f3

View File

@@ -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