Sha256: 49335ef2b41feef736a3f3aa58d50f6fff43adebd34ec4192d2299ae0ad8e81c

Contents?: true

Size: 643 Bytes

Versions: 4

Compression:

Stored size: 643 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module ActionDelegator
    module NeedsConsultationStyles
      extend ActiveSupport::Concern

      included do
        helper_method :snippets
      end

      def snippets
        @snippets ||= Decidim::Snippets.new

        unless @snippets.any?(:action_delegator_consultation_questions)
          @snippets.add(:action_delegator_consultation_questions, ActionController::Base.helpers.stylesheet_pack_tag("decidim_action_delegator_questions"))
          @snippets.add(:head, @snippets.for(:action_delegator_consultation_questions))
        end

        @snippets
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-action_delegator-0.8.1 app/controllers/concerns/decidim/action_delegator/needs_consultation_styles.rb
decidim-action_delegator-0.7.2 app/controllers/concerns/decidim/action_delegator/needs_consultation_styles.rb
decidim-action_delegator-0.7.1 app/controllers/concerns/decidim/action_delegator/needs_consultation_styles.rb
decidim-action_delegator-0.7.0 app/controllers/concerns/decidim/action_delegator/needs_consultation_styles.rb