Class: Banzai::Filter::ServiceDeskUploadLinkFilter
- Inherits:
-
BaseRelativeLinkFilter
- Object
- HTML::Pipeline::Filter
- BaseRelativeLinkFilter
- Banzai::Filter::ServiceDeskUploadLinkFilter
- Includes:
- Concerns::PipelineTimingCheck
- Defined in:
- lib/banzai/filter/service_desk_upload_link_filter.rb
Overview
HTML filter for service desk emails. Context options:
:replace_upload_links
Constant Summary
Constants included from Concerns::PipelineTimingCheck
Concerns::PipelineTimingCheck::MAX_PIPELINE_SECONDS
Constants inherited from BaseRelativeLinkFilter
BaseRelativeLinkFilter::CSS, BaseRelativeLinkFilter::XPATH
Instance Method Summary collapse
Methods included from Concerns::PipelineTimingCheck
Instance Method Details
#call ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/banzai/filter/service_desk_upload_link_filter.rb', line 11 def call return doc unless context[:uploads_as_attachments].present? linkable_attributes.reject! do |attr| replace_upload_link(attr) end doc end |