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