Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix an error for
apply_rubocop_autocorrect_after_generate!
with `--…
…pretend` ## Motivation / Background An issue was identified where an error occurs when executing `apply_rubocop_autocorrect_after_generate!` with `--pretend` option, according to feedback from rubocop/rubocop-rails#1263. ## Details This PR fixes the following error when executing `apply_rubocop_autocorrect_after_generate!` with `--pretend` option: ```console $ bin/rails g migration create_users -p ``` ### Before An `Errno::ENOENT` error occurs: ```console invoke active_record create db/migrate/20240329060627_create_users.rb /Users/koic/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/bundler/gems/rails-8e46af8c9396/railties/lib/rails/configuration.rb:138:in `system': No such file or directory - bin/rubocop (Errno::ENOENT) ``` ### After No errors.
- Loading branch information