Sha256: 1ce801398a4f1f4ff84ebdf689c73bf844bc1d1ad5091b8a446256e2f03edebe
Contents?: true
Size: 447 Bytes
Versions: 4
Compression:
Stored size: 447 Bytes
Contents
# frozen_string_literal: true module Decidim # A Helper to render scopes, including a global scope, for forms. module ScopesHelper Option = Struct.new(:id, :name) # Check whether the resource has a visible scope or not. # # Returns boolean. def has_visible_scopes?(resource) current_participatory_process.scopes_enabled? && !current_participatory_process.scope.present? && resource.scope.present? end end end
Version data entries
4 entries across 4 versions & 2 rubygems