diff options
author | Michael Koziarski <michael@koziarski.com> | 2008-01-03 19:14:38 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-01-03 19:14:38 +0000 |
commit | 288553540b5b2f37497cb19357b25ac12e0498fd (patch) | |
tree | d6d409ff1a4b85653539bc0736ae251a091fb5f3 /activerecord/lib/active_record | |
parent | 32876476a714581377f7605539c9718883ce9907 (diff) | |
download | rails-288553540b5b2f37497cb19357b25ac12e0498fd.tar.gz rails-288553540b5b2f37497cb19357b25ac12e0498fd.tar.bz2 rails-288553540b5b2f37497cb19357b25ac12e0498fd.zip |
Ruby 1.9: Forwards compatibility change for fixtures and the new CSV module [JEG2]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8544 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record')
-rwxr-xr-x | 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 ffbce97295..f424b9379c 100755 --- a/activerecord/lib/active_record/fixtures.rb +++ b/activerecord/lib/active_record/fixtures.rb @@ -717,7 +717,7 @@ class Fixtures < (RUBY_VERSION < '1.9' ? YAML::Omap : Hash) end def read_csv_fixture_files - reader = CSV::Reader.create(erb_render(IO.read(csv_file_path))) + reader = CSV.parse(erb_render(IO.read(csv_file_path))) header = reader.shift i = 0 reader.each do |row| |