Skip to content

Commit 99924b6

Browse files
andyw8byroot
authored andcommitted
Fix RuboCop autocorrect for Windows
1 parent 990432f commit 99924b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

railties/lib/rails/configuration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def apply_rubocop_autocorrect_after_generate!
135135
after_generate do |files|
136136
parsable_files = files.filter { |file| File.exist?(file) && file.end_with?(".rb") }
137137
unless parsable_files.empty?
138-
system("bin/rubocop -A --fail-level=E #{parsable_files.shelljoin}", exception: true)
138+
system(RbConfig.ruby, "bin/rubocop", "-A", "--fail-level=E", *parsable_files, exception: true)
139139
end
140140
end
141141
end

0 commit comments

Comments
 (0)