diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2018-11-13 17:53:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-13 17:53:55 -0500 |
commit | 0b75743e345f98d3f53f5a29fcd0e91d2a370a24 (patch) | |
tree | 1020bed2638cff5df24199fd1b1010adf474d720 /railties/lib/rails/engine/configuration.rb | |
parent | 3dea7f0615144e891d4122697638db735fbea71d (diff) | |
parent | cffbf73a4761816d894a49fbec7f070f27ebbff4 (diff) | |
download | rails-0b75743e345f98d3f53f5a29fcd0e91d2a370a24.tar.gz rails-0b75743e345f98d3f53f5a29fcd0e91d2a370a24.tar.bz2 rails-0b75743e345f98d3f53f5a29fcd0e91d2a370a24.zip |
Merge pull request #34400 from gmcgibbon/rm_autoload_app_javascripts
Remove asset paths from autoload_paths
Diffstat (limited to 'railties/lib/rails/engine/configuration.rb')
-rw-r--r-- | railties/lib/rails/engine/configuration.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/lib/rails/engine/configuration.rb b/railties/lib/rails/engine/configuration.rb index 6bf0406b21..4143b3c881 100644 --- a/railties/lib/rails/engine/configuration.rb +++ b/railties/lib/rails/engine/configuration.rb @@ -38,7 +38,9 @@ module Rails @paths ||= begin paths = Rails::Paths::Root.new(@root) - paths.add "app", eager_load: true, glob: "{*,*/concerns}" + paths.add "app", eager_load: true, + glob: "{*,*/concerns}", + exclude: %w(assets javascript) paths.add "app/assets", glob: "*" paths.add "app/controllers", eager_load: true paths.add "app/channels", eager_load: true, glob: "**/*_channel.rb" |