Sha256: 18a8fb321061e183ad4eea071edd10358643b15e9e6e519e2ca001f8c0eceaf3

Contents?: true

Size: 288 Bytes

Versions: 5

Compression:

Stored size: 288 Bytes

Contents

module ESV
  MIME_TYPE = "application/vnd.ms-excel"
  CONTENT_TYPE = "#{MIME_TYPE}; charset=utf-8"

  module RailsController
    private

    def send_excel(data)
      send_data(
        data,
        type: ESV::CONTENT_TYPE,
        disposition: "attachment",
      )
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
excel-esv-0.0.7 lib/esv/rails_controller.rb
excel-esv-0.0.6 lib/esv/rails_controller.rb
excel-esv-0.0.5 lib/esv/rails_controller.rb
excel-esv-0.0.4 lib/esv/rails_controller.rb
excel-esv-0.0.3 lib/esv/rails_controller.rb