Method: QueryReport::Helper#query_report_pdf_template_class

Defined in:
lib/query_report/helper.rb

#query_report_pdf_template_class(options) ⇒ Object



41
42
43
44
45
46
47
48
# File 'lib/query_report/helper.rb', line 41

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