Sha256: d49d10e46c0d2780b9ba4694b2b668e6acb8b8e8c02eb6508d4e9aa36fc95848
Contents?: true
Size: 421 Bytes
Versions: 1
Compression:
Stored size: 421 Bytes
Contents
# frozen_string_literal: true module Decidim module ActionDelegator module Consultations module QuestionOverride extend ActiveSupport::Concern included do # if results can be shown to admins def publishable_results? (ActionDelegator.admin_preview_results || consultation.finished?) && sorted_results.any? end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
decidim-action_delegator-0.8.1 | app/models/concerns/decidim/action_delegator/consultations/question_override.rb |