Add a new .gsub call with a regular expression that catches scaffolded annotations. There already is a line that removes existing Chusaku annotations, so this new call was added directly after it.
Testing
I've tested this locally with a new Rails 6.0.1 app and some scaffolded controllers, but @justinshaw I'd like you to take a look at this branch as the corresponding Issue author to see if it works for the project that you're using Chusaku on.
You should be able to swap out the appropriate line in your Gemfile with:
Related Issue
Closes #10.
Solution
Add a new
.gsub
call with a regular expression that catches scaffolded annotations. There already is a line that removes existing Chusaku annotations, so this new call was added directly after it.Testing
I've tested this locally with a new Rails 6.0.1 app and some scaffolded controllers, but @justinshaw I'd like you to take a look at this branch as the corresponding Issue author to see if it works for the project that you're using Chusaku on.
You should be able to swap out the appropriate line in your
Gemfile
with:Then give it another whirl with: