diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-11 16:52:23 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-11 16:52:23 -0800 |
commit | 24166c2603d8e706a0f44b05875b32fbf46b48cf (patch) | |
tree | bc89b53fba421123b542b661da210a72e2106424 | |
parent | 0ebbf6be8a5aa9b5c817b3ee0dfdd8135c525ac7 (diff) | |
download | rails-24166c2603d8e706a0f44b05875b32fbf46b48cf.tar.gz rails-24166c2603d8e706a0f44b05875b32fbf46b48cf.tar.bz2 rails-24166c2603d8e706a0f44b05875b32fbf46b48cf.zip |
database quoting should take care of this, no need to gsub
-rw-r--r-- | activerecord/lib/active_record/fixtures.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |