Sha256: 86c51431bd5ce8cedd6da350555e59bed20e89d46e3bc71589a29abe6af802f1
Contents?: true
Size: 487 Bytes
Versions: 8
Compression:
Stored size: 487 Bytes
Contents
# frozen_string_literal: true module Decidim module Amendable # This cell renders the button to amend the given resource. class AmendButtonCardCell < Decidim::ViewModel delegate :current_user, to: :controller, prefix: false def model_name model.model_name.human end def current_component model.component end def new_amend_path decidim.new_amend_path(amendable_gid: model.to_sgid.to_s) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems