Permalink
Browse files

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
  • Loading branch information...
1 parent ce99c87 commit 24a5a803f3d01d1b6d72e1fb22a97b3922848cae @dhh dhh committed Jun 1, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/core_ext/array/conversions.rb
@@ -35,7 +35,7 @@ def to_formatted_s(format = :default)
case format
when :db
if respond_to?(:empty?) && self.empty?
- "null"
+ "0"
else
collect { |element| element.id }.join(",")
end

0 comments on commit 24a5a80

Please sign in to comment.