Sha256: 870d7a6a0c9774feaa2abcffa633937d3bd4697bb4aa3b33662ba4499f4d0312
Contents?: true
Size: 581 Bytes
Versions: 24
Compression:
Stored size: 581 Bytes
Contents
# frozen_string_literal: true module Decidim class DataConsentCell < Decidim::ViewModel def show render end def categories @categories ||= Decidim.consent_categories.map do |category| { slug: category[:slug], title: t("layouts.decidim.data_consent.modal.#{category[:slug]}.title"), description: t("layouts.decidim.data_consent.modal.#{category[:slug]}.description"), mandatory: category[:mandatory], items: category.has_key?(:items) ? category[:items] : [] } end end end end
Version data entries
24 entries across 24 versions & 1 rubygems