Sha256: 2e74d06be08434aa19e33593b980e06b63b96240f811a818a943a7adbb938ce9

Contents?: true

Size: 528 Bytes

Versions: 6

Compression:

Stored size: 528 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module EnhancedTextwork
    module ContentBlocks
      class HighlightedParagraphsCell < Decidim::ContentBlocks::HighlightedElementsCell
        def base_relation
          @base_relation ||= Decidim::EnhancedTextwork::Paragraph.published.not_hidden.except_withdrawn.where(component: published_components)
        end

        private

        def limit
          Decidim::EnhancedTextwork.config.process_group_highlighted_paragraphs_limit
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-enhanced_textwork-1.0.5 app/cells/decidim/enhanced_textwork/content_blocks/highlighted_paragraphs_cell.rb
decidim-enhanced_textwork-1.0.4 app/cells/decidim/enhanced_textwork/content_blocks/highlighted_paragraphs_cell.rb
decidim-enhanced_textwork-1.0.3 app/cells/decidim/enhanced_textwork/content_blocks/highlighted_paragraphs_cell.rb
decidim-enhanced_textwork-1.0.2 app/cells/decidim/enhanced_textwork/content_blocks/highlighted_paragraphs_cell.rb
decidim-enhanced_textwork-1.0.1 app/cells/decidim/enhanced_textwork/content_blocks/highlighted_paragraphs_cell.rb
decidim-enhanced_textwork-1.0.0 app/cells/decidim/enhanced_textwork/content_blocks/highlighted_paragraphs_cell.rb