Sha256: 45b08e8e76e788952b62b4be2d53bfd0434d185d3a6d252bf04f594aca519186

Contents?: true

Size: 1.97 KB

Versions: 10

Compression:

Stored size: 1.97 KB

Contents

# frozen_string_literal: true

require "decidim/proposals/admin"
require "decidim/proposals/engine"
require "decidim/proposals/admin_engine"
require "decidim/proposals/component"
require "acts_as_list"

module Decidim
  # This namespace holds the logic of the `Proposals` component. This component
  # allows users to create proposals in a participatory process.
  module Proposals
    autoload :ProposalSerializer, "decidim/proposals/proposal_serializer"
    autoload :CommentableProposal, "decidim/proposals/commentable_proposal"
    autoload :CommentableCollaborativeDraft, "decidim/proposals/commentable_collaborative_draft"
    autoload :MarkdownToProposals, "decidim/proposals/markdown_to_proposals"
    autoload :ParticipatoryTextSection, "decidim/proposals/participatory_text_section"
    autoload :DocToMarkdown, "decidim/proposals/doc_to_markdown"
    autoload :OdtToMarkdown, "decidim/proposals/odt_to_markdown"
    autoload :Valuatable, "decidim/proposals/valuatable"

    include ActiveSupport::Configurable

    # Public Setting that defines the similarity minimum value to consider two
    # proposals similar. Defaults to 0.25.
    config_accessor :similarity_threshold do
      0.25
    end

    # Public Setting that defines how many similar proposals will be shown.
    # Defaults to 10.
    config_accessor :similarity_limit do
      10
    end

    # Public Setting that defines how many proposals will be shown in the
    # participatory_space_highlighted_elements view hook
    config_accessor :participatory_space_highlighted_proposals_limit do
      4
    end

    # Public Setting that defines how many proposals will be shown in the
    # process_group_highlighted_elements view hook
    config_accessor :process_group_highlighted_proposals_limit do
      3
    end
  end

  module ContentParsers
    autoload :ProposalParser, "decidim/content_parsers/proposal_parser"
  end

  module ContentRenderers
    autoload :ProposalRenderer, "decidim/content_renderers/proposal_renderer"
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
decidim-proposals-0.23.6 lib/decidim/proposals.rb
decidim-proposals-0.23.5 lib/decidim/proposals.rb
decidim-proposals-0.23.4 lib/decidim/proposals.rb
decidim-proposals-0.23.3 lib/decidim/proposals.rb
decidim-proposals-0.23.2 lib/decidim/proposals.rb
decidim-proposals-0.23.1 lib/decidim/proposals.rb
decidim-proposals-0.23.1.rc1 lib/decidim/proposals.rb
decidim-proposals-0.23.0 lib/decidim/proposals.rb
decidim-proposals-0.22.0 lib/decidim/proposals.rb
decidim-proposals-0.21.0 lib/decidim/proposals.rb