datamapper / dm-serializer

DataMapper plugin for serializing Resources and Collections
http://datamapper.org/
MIT License
40 stars 44 forks source link

dm-serializer redefines the global CSV constant on Ruby 1.8 #25

Closed rsutphin closed 8 years ago

rsutphin commented 12 years ago

dm-serializer/to_csv.rb redefines the global CSV constant to be an alias to FasterCSV when running under Ruby 1.8. While I understand the desire to keep the remainder of the code the same under 1.8 and 1.9, this causes two problems:

An alternative: define a method on DataMapper::Serializer that returns the appropriate module to use (CSV or FasterCSV) depending on the ruby version.

hhuang commented 12 years ago

+1

glennr commented 12 years ago

+1

rue0815 commented 11 years ago

+1

tpitale commented 8 years ago

Does anyone still need this? Ruby 1.8 (and 1.9 for that matter) are unsupported any longer. I'm not sure we have the people to maintain support for these versions. If you are still using 1.8 please leave a comment and I'll reopen.