Sha256: a2074c2a7ae86d51587b3a65c12ccf105a4a7ce482289dddd8710fc4b3cfb887
Contents?: true
Size: 437 Bytes
Versions: 5
Compression:
Stored size: 437 Bytes
Contents
module WickedPdf module PdfHelper def self.prepended(base) # Protect from trying to augment modules that appear # as the result of adding other gems. return if base != ActionController::Base end def render_to_string(options = nil, *args, &block) if options.is_a?(Hash) && options.key?(:pdf) WickedPdf::Renderer.new(self).render(options) else super end end end end
Version data entries
5 entries across 5 versions & 1 rubygems