Sha256: 71bd17465a0702e078d5080de46ebc18febd98739f78b35118499973c17eeb64
Contents?: true
Size: 538 Bytes
Versions: 13
Compression:
Stored size: 538 Bytes
Contents
# frozen_string_literal: true module Decidim module ParticipatoryProcesses class ProcessStepCell < Decidim::ViewModel include ParticipatoryProcessHelper include Decidim::ModalHelper delegate :steps, :active_step, to: :model def show return if steps.blank? render end private def display_steps? [true, "true"].include? options[:display_steps] end def data return unless display_steps? { is_open: true } end end end end
Version data entries
13 entries across 13 versions & 1 rubygems