Sha256: f8681de5ff6db7d5a5c4c33d1f8814cb7a7f1b9337c54426c12703c4c1bff6a6
Contents?: true
Size: 500 Bytes
Versions: 79
Compression:
Stored size: 500 Bytes
Contents
# frozen_string_literal: true module Decidim module Proposals # The data store for a Proposal in the Decidim::Proposals component. module ParticipatoryTextSection extend ActiveSupport::Concern LEVELS = { section: "section", sub_section: "sub-section", article: "article" }.freeze included do # Public: is this section an :article? def article? participatory_text_level == LEVELS[:article] end end end end end
Version data entries
79 entries across 79 versions & 1 rubygems