Method: QueryReport::Helper#query_report_pdf_template_class

Defined in:
lib/query_report/helper.rb

#query_report_pdf_template_class(options) ⇒ Object



56
57
58
59
60
61
62
63
# File 'lib/query_report/helper.rb', line 56

def query_report_pdf_template_class(options)
  options = QueryReport.config.pdf_options.merge(options)
  if options[:template_class]
    @template_class ||= options[:template_class].to_s.constantize
    return @template_class
  end
  QueryReport::ReportPdf
end