Sha256: 277972de1696a16d24f38694fa745eca2cd6a5643e315cf33a2c195959c14663

Contents?: true

Size: 356 Bytes

Versions: 3

Compression:

Stored size: 356 Bytes

Contents

module QbIif
  module Rails
    class Renderer
      ActionController::Renderers.add :iif do |iif_string, options|
        filename = options[:filename] || options[:template]
        send_data(
          iif_string,
          filename: "#{filename}.iif",
          type: Mime::IIF,
          disposition: 'attachment'
        )
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
qb_iif-0.1.2 lib/qb_iif/rails/renderer.rb
qb_iif-0.1.1 lib/qb_iif/rails/renderer.rb
qb_iif-0.1.0 lib/qb_iif/rails/renderer.rb