Skip to content

Commit b1ebd2b

Browse files
committed
Add phlex paths to application wasm config
1 parent eed8f11 commit b1ebd2b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

config/application_wasm.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ class Application < Rails::Application
3939
# Common ones are `templates`, `generators`, or `middleware`, for example.
4040
config.autoload_lib(ignore: %w[assets tasks generators rails-wasm])
4141

42+
# Look up Phlex components under app/views
43+
config.autoload_paths << "#{root}/app/views"
44+
config.autoload_paths << "#{root}/app/views/layouts"
45+
config.autoload_paths << "#{root}/app/views/components"
46+
4247
# Configuration for the application, engines, and railties goes here.
4348
#
4449
# These settings can be overridden in specific environments using the files

0 commit comments

Comments
 (0)