Skip to content

Commit 5764086

Browse files
committed
Fix autoloading for app resources
1 parent 5a1059b commit 5764086

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
katalyst-kpop (3.2.0)
4+
katalyst-kpop (3.2.1)
55
katalyst-html-attributes
66
turbo-rails
77
view_component

katalyst-kpop.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Gem::Specification.new do |spec|
44
spec.name = "katalyst-kpop"
5-
spec.version = "3.2.0"
5+
spec.version = "3.2.1"
66
spec.authors = ["Katalyst Interactive"]
77
spec.email = ["[email protected]"]
88

lib/katalyst/kpop/engine.rb

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ module Kpop
88
class Engine < ::Rails::Engine
99
isolate_namespace Katalyst::Kpop
1010
config.eager_load_namespaces << Katalyst::Kpop
11+
config.autoload_once_paths = %W(
12+
#{root}/app/helpers
13+
#{root}/app/controllers
14+
#{root}/app/controllers/concerns
15+
)
1116
config.paths.add("lib", autoload_once: true)
1217

1318
initializer "kpop.assets" do

0 commit comments

Comments
 (0)