Sha256: 25126f772bfd77b640374f8eff5f0336e06abf1b43a9b8c52fc1edc005eb3843

Contents?: true

Size: 434 Bytes

Versions: 22

Compression:

Stored size: 434 Bytes

Contents

module Dradis
  module Plugins
    module CSV
      class BaseController < Dradis::Plugins::Export::BaseController

        def index
          exporter = Dradis::Plugins::CSV::Exporter.new(export_options)
          csv      = exporter.export

          send_data csv,
            disposition: 'inline',
            filename: "dradis_report-#{Time.now.to_i}.csv",
            type: 'text/csv'
        end
      end

    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
dradis-csv-4.4.0 app/controllers/dradis/plugins/csv/base_controller.rb
dradis-csv-4.3.0 app/controllers/dradis/plugins/csv/base_controller.rb
dradis-csv-4.2.0 app/controllers/dradis/plugins/csv/base_controller.rb
dradis-csv-4.1.0 app/controllers/dradis/plugins/csv/base_controller.rb
dradis-csv-4.0.0 app/controllers/dradis/plugins/csv/base_controller.rb
dradis-csv-3.22.0 app/controllers/dradis/plugins/csv/base_controller.rb
dradis-csv-3.21.0 app/controllers/dradis/plugins/csv/base_controller.rb
dradis-csv-3.20.0 app/controllers/dradis/plugins/csv/base_controller.rb
dradis-csv-3.19.0 app/controllers/dradis/plugins/csv/base_controller.rb
dradis-csv-3.18.0 app/controllers/dradis/plugins/csv/base_controller.rb
dradis-csv-3.17.0 app/controllers/dradis/plugins/csv/base_controller.rb
dradis-csv-3.16.0 app/controllers/dradis/plugins/csv/base_controller.rb
dradis-csv-3.15.0 app/controllers/dradis/plugins/csv/base_controller.rb
dradis-csv-3.14.0 app/controllers/dradis/plugins/csv/base_controller.rb
dradis-csv-3.13.0 app/controllers/dradis/plugins/csv/base_controller.rb
dradis-csv-3.12.0 app/controllers/dradis/plugins/csv/base_controller.rb
dradis-csv-3.11.0 app/controllers/dradis/plugins/csv/base_controller.rb
dradis-csv-3.10.0 app/controllers/dradis/plugins/csv/base_controller.rb
dradis-csv-3.9.0 app/controllers/dradis/plugins/csv/base_controller.rb
dradis-csv-3.8.0 app/controllers/dradis/plugins/csv/base_controller.rb