Skip to content

Commit

Permalink
Update railties/lib/rails/configuration.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
  • Loading branch information
andyw8 and byroot committed May 10, 2024
1 parent 3878cd4 commit 566a721
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("ruby 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 566a721

Please sign in to comment.