Created
July 21, 2011 07:48
Revisions
-
hindenbug revised this gist
Aug 1, 2011 . 1 changed file with 13 additions and 7 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,10 +6,16 @@ # in app/config/environment.rb require "csv" unless !CSV.const_defined? :Reader require "fastercsv" Object.send(:remove_const, :CSV) CSV = FasterCSV end #if CSV.const_defined? :Reader # require "fastercsv" #for ruby 1.8 # Object.send(:remove_const, :CSV) # CSV = FasterCSV #else # # use CSV for ruby 1.9 #end -
hindenbug revised this gist
Jul 21, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ # in Gemfile gem "fastercsv", :platforms => [:mri_18, :ruby_18] # in app/config/environment.rb -
hindenbug revised this gist
Jul 21, 2011 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,13 +3,13 @@ gem "fastercsv, :platforms => [:mri_18, :ruby_18] # in app/config/environment.rb require "csv" if CSV.const_defined? :Reader require "fastercsv" #for ruby 1.8 Object.send(:remove_const, :CSV) CSV = FasterCSV else # use CSV for ruby 1.9 end -
hindenbug created this gist
Jul 21, 2011 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ # in Gemfile gem "fastercsv, :platforms => [:mri_18, :ruby_18] #in app/config/environment.rb require "csv" if CSV.const_defined? :Reader require "fastercsv" #for ruby 1.8 Object.send(:remove_const, :CSV) CSV = FasterCSV else #use CSV for ruby 1.9 end