Sha256: e3adda0048b519fa15a708340d4d73178fcd8e42f8ee7ad2d76f342027e47dcf
Contents?: true
Size: 425 Bytes
Versions: 7
Compression:
Stored size: 425 Bytes
Contents
# frozen_string_literal: true module Decidim module Amendable # This cell renders the button to amend the given resource. class AmendButtonCardCell < Decidim::ViewModel 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
7 entries across 7 versions & 1 rubygems