Sha256: c9aec91f899abeb9a41eca039feb7af3a1176a8ab7ed77526dce2f02f927e775
Contents?: true
Size: 659 Bytes
Versions: 4
Compression:
Stored size: 659 Bytes
Contents
require "importmap/paths" module Importmap class Engine < ::Rails::Engine config.importmap = ActiveSupport::OrderedOptions.new config.importmap.paths = Importmap::Paths.new.tap { |paths| paths.assets_in "app/assets/javascripts" } config.autoload_once_paths = %W( #{root}/app/helpers ) initializer "importmap.assets" do if Rails.application.config.respond_to?(:assets) Rails.application.config.assets.precompile += %w( es-module-shims ) end end initializer "importmap.helpers" do ActiveSupport.on_load(:action_controller_base) do helper Importmap::ImportmapTagsHelper end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
importmap-rails-0.1.3 | lib/importmap/engine.rb |
importmap-rails-0.1.2 | lib/importmap/engine.rb |
importmap-rails-0.1.1 | lib/importmap/engine.rb |
importmap-rails-0.1.0 | lib/importmap/engine.rb |