lib/cloudxls-rails/handlers/csv.rb in cloudxls-rails-0.4.2 vs lib/cloudxls-rails/handlers/csv.rb in cloudxls-rails-0.4.3

- old
+ new

@@ -33,10 +33,10 @@ ActionController::Renderers.add :csv do |scope, options| filename = options.fetch(:filename, "data-#{DateTime.now.to_s}.csv") columns = options[:columns] - if options[:stream] == true + if options[:stream] CloudXLSRails::CSVResponder.stream!(self, scope, options) else # no stream: data = CloudXLS::CSVWriter.text(scope, {:columns => columns}) send_data data, \ No newline at end of file