Changeset 1260

Show
Ignore:
Timestamp:
02/04/08 03:27:22 (10 months ago)
Author:
brian
Message:

require 'fastercsv' only when the Formatter::CSV is instantiated, not for
every row.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ruport/trunk/lib/ruport/formatter/csv.rb

    r1256 r1260  
    3737    attr_writer :csv_writer 
    3838 
     39    def initialize 
     40      require 'fastercsv' 
     41    end 
     42 
    3943    # Hook for setting available options using a template. See the template  
    4044    # documentation for the available options and their format. 
     
    5256    # 
    5357    def csv_writer 
    54       require 'fastercsv' 
    5558      @csv_writer ||= options.formatter || 
    5659        FCSV(output, options.format_options || {})