Sha256: 6b2b86d24d3d7cbd5520e9a9d57614a4247ec83cdbb4370d78b2c349078e0cbe
Contents?: true
Size: 1.11 KB
Versions: 1
Compression:
Stored size: 1.11 KB
Contents
# frozen_string_literal: true module Decidim # This namespace holds the logic of the `decidim-participatory_documents` module. module ParticipatoryDocuments include ActiveSupport::Configurable # Public: The maximum length of any text field (body, answers, etc) to export. # Defaults to 50. Set to 0 to export the full text. config_accessor :max_export_text_length do ENV.fetch("MAX_EXPORT_TEXT_LENGTH", 0).to_i end # Public: The minimum length of a suggestion to be considered valid. # This setting is configurable per-component by admins config_accessor :min_suggestion_length do ENV.fetch("MIN_SUGGESTION_LENGTH", 5).to_i end # Public: The maximum length of a suggestion to be considered valid. # This setting is configurable per-component by admins config_accessor :max_suggestion_length do ENV.fetch("MAX_SUGGESTION_LENGTH", 1000).to_i end end end require "decidim/participatory_documents/engine" require "decidim/participatory_documents/admin" require "decidim/participatory_documents/admin_engine" require "decidim/participatory_documents/component"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
decidim-participatory_documents-0.2.1 | lib/decidim/participatory_documents.rb |