Module: PdfCover::ClassMethods::Paperclip
- Defined in:
- lib/pdf_cover.rb
Instance Method Summary collapse
-
#pdf_cover_attachment(attachment_name, options = {}) ⇒ Object
Adds a new attached file to the caller that has the pdf cover processors prepended to the list of processors given.
Instance Method Details
#pdf_cover_attachment(attachment_name, options = {}) ⇒ Object
Adds a new attached file to the caller that has the pdf cover processors prepended to the list of processors given.
described in the Paperclip documentation for attachments are needed for this one. are passed to the has_attached_file call with just a new processor prepended to the given ones. The PdfCover processor will use the quality provided in the ‘convert_options` option when generating the jpeg.
63 64 65 66 67 |
# File 'lib/pdf_cover.rb', line 63 def (, = {}) [:processors] = ([:processors] || []).unshift(:pdf_cover_processor) has_attached_file , end |