lib/banzai/filter/suggestion_filter.rb
def call
        return doc unless Suggestion.feature_enabled?
        return doc unless suggestions_filter_enabled?

        doc.search('pre.suggestion > code').each do |node|
          node.add_class(TAG_CLASS)
        end

        doc
      end
# Class used for tagging elements that should be rendered
Class used for tagging elements that should be rendered
Class used for tagging elements that should be rendered
def call
        return doc unless Suggestion.feature_enabled?
        return doc unless suggestions_filter_enabled?
        doc.search('pre.suggestion > code').each do |node|
          node.add_class(TAG_CLASS)
        end
        doc
      end
def call return doc unless Suggestion . feature_enabled? return doc unless suggestions_filter_enabled? doc . search ( 'pre.suggestion > code' ) . each do | node | node . add_class ( TAG_CLASS ) end doc end
Class used for tagging elements that should be rendered
Class used for tagging elements that should be rendered