We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2af83b3 commit df856d0Copy full SHA for df856d0
app/controllers/concerns/importmap/freshness.rb renamed to app/controllers/importmap/freshness.rb
lib/importmap/engine.rb
@@ -11,7 +11,7 @@ class Engine < ::Rails::Engine
11
config.importmap.cache_sweepers = []
12
config.importmap.rescuable_asset_errors = []
13
14
- config.autoload_once_paths = %W( #{root}/app/helpers )
+ config.autoload_once_paths = %W( #{root}/app/helpers #{root}/app/controllers )
15
16
initializer "importmap" do |app|
17
app.importmap = Importmap::Map.new
@@ -50,7 +50,6 @@ class Engine < ::Rails::Engine
50
51
initializer "importmap.concerns" do
52
ActiveSupport.on_load(:action_controller_base) do
53
- require_relative "../../app/controllers/concerns/importmap/freshness"
54
extend Importmap::Freshness
55
end
56
0 commit comments