aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/tasks/zeitwerk.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/tasks/zeitwerk.rake b/railties/lib/rails/tasks/zeitwerk.rake
index cf84bb6948..b7f5cd154b 100644
--- a/railties/lib/rails/tasks/zeitwerk.rake
+++ b/railties/lib/rails/tasks/zeitwerk.rake
@@ -20,7 +20,7 @@ end
mismatches = []
check_directory = ->(directory, parent) do
# test/mailers/previews might not exist.
- return unless File.exists?(directory)
+ return unless File.exist?(directory)
Dir.foreach(directory) do |entry|
next if entry.start_with?(".")