Class: Banzai::Pipeline::PostProcessPipeline
- Inherits:
-
BasePipeline
- Object
- BasePipeline
- Banzai::Pipeline::PostProcessPipeline
- Defined in:
- lib/banzai/pipeline/post_process_pipeline.rb
Class Method Summary collapse
Methods inherited from BasePipeline
Class Method Details
.filters ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/banzai/pipeline/post_process_pipeline.rb', line 6 def self.filters @filters ||= FilterArray[ Filter::TruncateVisibleFilter, *internal_link_filters, Filter::AbsoluteLinkFilter, Filter::BroadcastMessagePlaceholdersFilter ] end |
.internal_link_filters ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/banzai/pipeline/post_process_pipeline.rb', line 15 def self.internal_link_filters [ Filter::ReferenceRedactorFilter, # UploadLinkFilter must come before RepositoryLinkFilter to # prevent unnecessary Gitaly calls from being made. Filter::UploadLinkFilter, Filter::RepositoryLinkFilter, Filter::IssuableReferenceExpansionFilter, Filter::SuggestionFilter ] end |
.transform_context(context) ⇒ Object
27 28 29 30 31 |
# File 'lib/banzai/pipeline/post_process_pipeline.rb', line 27 def self.transform_context(context) context.merge( post_process: true ) end |