Skip to content

Commit

Permalink
Still need to require the ruby 1.9 CSV library.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Ostrowski authored and pcreux committed Jun 18, 2011
1 parent 7d7f31f commit c6e4776
Showing 1 changed file with 6 additions and 6 deletions.
@@ -1,11 +1,11 @@
<%-
csv_lib = if RUBY_VERSION =~ /^1.8/
require 'fastercsv'
FasterCSV
else
CSV
end

require 'fastercsv'
FasterCSV
else
require 'csv'
CSV
end

csv_output = csv_lib.generate do |csv|
columns = active_admin_config.csv_builder.columns
Expand Down

0 comments on commit c6e4776

Please sign in to comment.