Module: Decidim::Admin::LogsHelper
- Defined in:
- app/helpers/decidim/admin/logs_helper.rb
Instance Method Summary collapse
Instance Method Details
#participatory_space_options ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'app/helpers/decidim/admin/logs_helper.rb', line 6 def Decidim.participatory_space_manifests.map do |manifest| model_class = manifest.model_class_name.constantize spaces = manifest.participatory_spaces.call(current_organization).map do |space| [translated_attribute(space.title), "#{manifest.name}(#{space.id})"] end [model_class.model_name.human(count: 2), spaces] end end |