Skip to content

Commit

Permalink
Fix RuboCop autocorrect for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 authored and byroot committed May 11, 2024
1 parent 990432f commit 99924b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/rails/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def apply_rubocop_autocorrect_after_generate!
after_generate do |files|
parsable_files = files.filter { |file| File.exist?(file) && file.end_with?(".rb") }
unless parsable_files.empty?
system("bin/rubocop -A --fail-level=E #{parsable_files.shelljoin}", exception: true)
system(RbConfig.ruby, "bin/rubocop", "-A", "--fail-level=E", *parsable_files, exception: true)
end
end
end
Expand Down

0 comments on commit 99924b6

Please sign in to comment.