Search code examples
ruby-on-railsrubydouble-quotessingle-quotes

Ruby on Rails, convert projectwide single quotes to double quotes


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


Solution

  • I would also use rubocop for that:

    rubocop --safe-auto-correct --only "Style/StringLiterals" .
    

    As spickermann suggested