From 24166c2603d8e706a0f44b05875b32fbf46b48cf Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 11 Feb 2011 16:52:23 -0800 Subject: database quoting should take care of this, no need to gsub --- activerecord/lib/active_record/fixtures.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record') diff --git a/activerecord/lib/active_record/fixtures.rb b/activerecord/lib/active_record/fixtures.rb index caf1aedf09..56bfd2aff4 100644 --- a/activerecord/lib/active_record/fixtures.rb +++ b/activerecord/lib/active_record/fixtures.rb @@ -816,7 +816,7 @@ class Fixture #:nodoc: def value_list cols = (model_class && model_class < ActiveRecord::Base) ? model_class.columns_hash : {} @fixture.map do |key, value| - @connection.quote(value, cols[key]).gsub('[^\]\\n', "\n").gsub('[^\]\\r', "\r") + @connection.quote(value, cols[key]) end.join(', ') end -- cgit v1.2.3