Sha256: 420e197a75435b3c708ea0e50cae9c05e820ab231872d92ee3fae587e2c5d598
Contents?: true
Size: 545 Bytes
Versions: 8
Compression:
Stored size: 545 Bytes
Contents
# frozen_string_literal: true module Decidim::Amendable # This cell renders the list of amendments of a resource. class AmendmentsCell < Decidim::ViewModel include Decidim::ApplicationHelper include Decidim::CardHelper include Decidim::IconHelper delegate :amendable?, :visible_emendations_for, to: :model def show return unless amendable? return unless emendations.any? render end private def emendations @emendations ||= visible_emendations_for(current_user) end end end
Version data entries
8 entries across 8 versions & 1 rubygems