Method: WickedPdf::PdfHelper.prepended

Defined in:
lib/wicked_pdf/pdf_helper.rb

.prepended(base) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/wicked_pdf/pdf_helper.rb', line 5

def self.prepended(base)
  # Protect from trying to augment modules that appear
  # as the result of adding other gems.
  return if base != ActionController::Base

  base.class_eval do
    after_action :clean_temp_files
  end
end