Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 8544

Show
Ignore:
Timestamp:
01/03/08 19:14:38 (6 months ago)
Author:
nzkoz
Message:

Ruby 1.9: Forwards compatibility change for fixtures and the new CSV module [JEG2]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activerecord/CHANGELOG

    r8534 r8544  
    11*SVN* 
     2 
     3* Make sure CSV fixtures are compatible with ruby 1.9's new csv implementation. [JEG2] 
    24 
    35* Added by parameter to increment, decrement, and their bang varieties so you can do player1.increment!(:points, 5) #10542 [Sam] 
  • trunk/activerecord/lib/active_record/fixtures.rb

    r8524 r8544  
    718718 
    719719    def read_csv_fixture_files 
    720       reader = CSV::Reader.create(erb_render(IO.read(csv_file_path))) 
     720      reader = CSV.parse(erb_render(IO.read(csv_file_path))) 
    721721      header = reader.shift 
    722722      i = 0