Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Commit

Permalink
DEV: Do not auto reload on plugin spec file changes (#22127)
Browse files Browse the repository at this point in the history
There is no need to reload the rails server if plugin spec
files change, since they are not autoloaded but they are also
not loaded into the app.
  • Loading branch information
martin-brennan authored Jun 15, 2023
1 parent c819c96 commit f3afc8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/initializers/000-development_reload_warnings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
not_autoloaded =
files.filter_map do |file|
autoloaded = Rails.autoloaders.main.__autoloads.key? file
Pathname.new(file).relative_path_from(Rails.root) if !autoloaded
if !autoloaded && !file.end_with?("spec.rb")
Pathname.new(file).relative_path_from(Rails.root)
end
end

if not_autoloaded.length > 0
Expand Down

0 comments on commit f3afc8b

Please sign in to comment.