Sha256: 5a76b2d7127c71c4b9a9c80a362858834c09c21edf0aafebe824a885771e3615

Contents?: true

Size: 459 Bytes

Versions: 58

Compression:

Stored size: 459 Bytes

Contents

# frozen_string_literal: true

require "active_support/concern"

module Decidim
  # This module provides capability for storing conditional snippets during the
  # page view that need to be displayed in different part of the view than where
  # they are registered at.
  module NeedsSnippets
    extend ActiveSupport::Concern

    included do
      helper_method :snippets
    end

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

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
decidim-core-0.29.1 app/controllers/concerns/decidim/needs_snippets.rb
decidim-core-0.28.4 app/controllers/concerns/decidim/needs_snippets.rb
decidim-core-0.27.9 app/controllers/concerns/decidim/needs_snippets.rb
decidim-core-0.29.0 app/controllers/concerns/decidim/needs_snippets.rb
decidim-core-0.28.3 app/controllers/concerns/decidim/needs_snippets.rb
decidim-core-0.27.8 app/controllers/concerns/decidim/needs_snippets.rb
decidim-core-0.29.0.rc4 app/controllers/concerns/decidim/needs_snippets.rb
decidim-core-0.29.0.rc3 app/controllers/concerns/decidim/needs_snippets.rb
decidim-core-0.29.0.rc2 app/controllers/concerns/decidim/needs_snippets.rb
decidim-core-0.29.0.rc1 app/controllers/concerns/decidim/needs_snippets.rb
decidim-core-0.28.2 app/controllers/concerns/decidim/needs_snippets.rb
decidim-core-0.27.7 app/controllers/concerns/decidim/needs_snippets.rb
decidim-core-0.28.1 app/controllers/concerns/decidim/needs_snippets.rb
decidim-core-0.27.6 app/controllers/concerns/decidim/needs_snippets.rb
decidim-core-0.26.10 app/controllers/concerns/decidim/needs_snippets.rb
decidim-core-0.26.9 app/controllers/concerns/decidim/needs_snippets.rb
decidim-core-0.28.0 app/controllers/concerns/decidim/needs_snippets.rb
decidim-core-0.27.5 app/controllers/concerns/decidim/needs_snippets.rb
decidim-core-0.28.0.rc5 app/controllers/concerns/decidim/needs_snippets.rb
decidim-core-0.28.0.rc4 app/controllers/concerns/decidim/needs_snippets.rb