Sha256: b78485324949fa6ccd9955e4f79fa31de3986f2aa8ef6593929014312739f4bc

Contents?: true

Size: 683 Bytes

Versions: 19

Compression:

Stored size: 683 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Dev
    # This concern adds development tools, such as the accessibility checks
    # to the views where this is included for development purposes. This should
    # be only included in the development environment.
    module NeedsDevelopmentTools
      extend ActiveSupport::Concern

      included do
        before_action :apply_development_tools
      end

      private

      def apply_development_tools
        return unless respond_to?(:snippets)

        snippets.add(:head, helpers.stylesheet_pack_tag("decidim_dev"))
        snippets.add(:head, helpers.javascript_pack_tag("decidim_dev"))
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
decidim-dev-0.26.10 app/controllers/concerns/decidim/dev/needs_development_tools.rb
decidim-dev-0.26.9 app/controllers/concerns/decidim/dev/needs_development_tools.rb
decidim-dev-0.26.8 app/controllers/concerns/decidim/dev/needs_development_tools.rb
decidim-dev-0.26.7 app/controllers/concerns/decidim/dev/needs_development_tools.rb
decidim-dev-0.26.5 app/controllers/concerns/decidim/dev/needs_development_tools.rb
decidim-dev-0.26.4 app/controllers/concerns/decidim/dev/needs_development_tools.rb
decidim-dev-0.26.3 app/controllers/concerns/decidim/dev/needs_development_tools.rb
decidim-dev-0.26.2 app/controllers/concerns/decidim/dev/needs_development_tools.rb
decidim-dev-0.26.1 app/controllers/concerns/decidim/dev/needs_development_tools.rb
decidim-dev-0.26.0 app/controllers/concerns/decidim/dev/needs_development_tools.rb
decidim-dev-0.26.0.rc2 app/controllers/concerns/decidim/dev/needs_development_tools.rb
decidim-dev-0.26.0.rc1 app/controllers/concerns/decidim/dev/needs_development_tools.rb
decidim-dev-0.25.2 app/controllers/concerns/decidim/dev/needs_development_tools.rb
decidim-dev-0.25.1 app/controllers/concerns/decidim/dev/needs_development_tools.rb
decidim-dev-0.25.0 app/controllers/concerns/decidim/dev/needs_development_tools.rb
decidim-dev-0.25.0.rc4 app/controllers/concerns/decidim/dev/needs_development_tools.rb
decidim-dev-0.25.0.rc3 app/controllers/concerns/decidim/dev/needs_development_tools.rb
decidim-dev-0.25.0.rc2 app/controllers/concerns/decidim/dev/needs_development_tools.rb
decidim-dev-0.25.0.rc1 app/controllers/concerns/decidim/dev/needs_development_tools.rb