Sha256: 3232322fcd9addcb3f37286caf672e979f7ce6f52da4a0b7db25b83a75a0972b
Contents?: true
Size: 464 Bytes
Versions: 13
Compression:
Stored size: 464 Bytes
Contents
# frozen_string_literal: true module Decidim module Admin module Concerns module HasContentBlocks extend ActiveSupport::Concern included do helper_method :content_blocks? private def content_blocks? return unless Decidim.page_blocks.include?(scoped_resource.try(:slug)) @has_content_blocks ||= available_manifests.present? end end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems