Sha256: 1185ce7806a0223d6d4e45c0271184f1c1eace7a1094746d04a35a89b10f0d57
Contents?: true
Size: 714 Bytes
Versions: 44
Compression:
Stored size: 714 Bytes
Contents
# frozen_string_literal: true module Decidim module Budgets # This cell has the commons for the budgets cells class BaseCell < Decidim::ViewModel include Decidim::LayoutHelper include Decidim::SanitizeHelper include Decidim::ComponentPathHelper include Decidim::Budgets::Engine.routes.url_helpers delegate :current_user, :current_settings, :current_component, :current_workflow, to: :controller delegate :settings, to: :current_component def budgets_link_list(budgets) budgets.map { |budget| link_to(translated_attribute(budget.title), resource_locator(budget).path) } .to_sentence .html_safe end end end end
Version data entries
44 entries across 44 versions & 1 rubygems