Skip to content

Commit 3af5c07

Browse files
authored
Merge pull request rails#51779 from andyw8/andyw8/fix-rubocop-autocorrect-for-windows
Fix RuboCop autocorrect for Windows compatibility
2 parents 990432f + 99924b6 commit 3af5c07

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)