Sha256: 92e7bdc5818e1556e11619ec6278556fbbd4c2801820bfd83261ae7adb999d18
Contents?: true
Size: 605 Bytes
Versions: 2
Compression:
Stored size: 605 Bytes
Contents
require "stimulus/importmap_helper" module Stimulus class Engine < ::Rails::Engine isolate_namespace Stimulus config.eager_load_namespaces << Stimulus initializer "stimulus.assets" do Rails.application.config.assets.precompile += %w( importmap.json stimulus/manifest ) end initializer "stimulus.helpers" do ActiveSupport.on_load(:action_controller_base) do helper Stimulus::Engine.helpers end Rails.application.config.assets.configure do |env| env.context_class.class_eval { include Stimulus::ImportmapHelper } end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
stimulus-rails-0.1.1 | lib/stimulus/engine.rb |
hotwire-stimulus-rails-0.1.0 | lib/stimulus/engine.rb |