Sha256: 6ad3390fb13bd95dadb7d234d3a05c1a8f838a290f05b2546b07c0b972de07ca
Contents?: true
Size: 564 Bytes
Versions: 17
Compression:
Stored size: 564 Bytes
Contents
# frozen_string_literal: true module Decidim # A context aware presenter for participatory space manifest for translations class ParticipatorySpaceManifestPresenter < SimpleDelegator attr_reader :organization def initialize(manifest, organization) super(manifest) @organization = organization end def human_name(count: 1) organization.available_locales.index_with do |locale| model_class.model_name.human(count:, locale:) end end def model_class model_class_name.constantize end end end
Version data entries
17 entries across 17 versions & 1 rubygems