I wonder if anyone has come up with a shortcut to correctly
convert ALL single quotes to double quotes in a new rails project. Thank you in advance. I would do that at the end of generating new project with a template.rb
Ruby on Rails, convert projectwide single quotes to double quotes
Asked Answered
I would also use rubocop
for that:
rubocop --safe-auto-correct --only "Style/StringLiterals" .
As spickermann
suggested
© 2022 - 2024 — McMap. All rights reserved.
rubocop -a
to automatically fix all issues. – Trueblue