aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-04-30 17:52:05 +0900
committerRyuta Kamizono <kamipo@gmail.com>2019-04-30 18:32:41 +0900
commitc1ff1392dbcd8fbf9228d552cf596a26351b2edc (patch)
treee454c434dd8f323c2765469e114da4fdf796d302 /railties/lib/rails
parent83f7c25dfc441945dfc9eaab7e7880da24d3c026 (diff)
downloadrails-c1ff1392dbcd8fbf9228d552cf596a26351b2edc.tar.gz
rails-c1ff1392dbcd8fbf9228d552cf596a26351b2edc.tar.bz2
rails-c1ff1392dbcd8fbf9228d552cf596a26351b2edc.zip
Fix rubocop offences
Diffstat (limited to 'railties/lib/rails')
-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?(".")