Sha256: bdae3c1dfa42106896d3f13b20251b385103b76e8495baaea2babd836f5e7723

Contents?: true

Size: 380 Bytes

Versions: 1

Compression:

Stored size: 380 Bytes

Contents

module Mitamirri
  require 'mitamirri'
  require 'mitamirri/session_report'
  
  # Detects the ability of the host application to output reports to PDF format.
  def self.pdf_output_enabled?
    @pdf_output_enabled ||= false
    begin
      @pdf_output_enabled = Rails.configuration.middleware.include?('PDFKit::Middleware')
    rescue
    end
    @pdf_output_enabled
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mitamirri-0.13.8 lib/mitamirri.rb