Change old Ruby 1.8 hash syntax to new one in Rails app.
syntax_fix gem changes the hash style from ':key => "value"' to 'key: "value"'
Put this line in your Gemfile: gem 'syntax_fix'
syntax_fix
This command will check and rewrite all files with the new syntax.
options:
v <-- be verbose about the actions
p [PATH] <-- specify the relative path to start actions from
Reference: https://github.com/HeeL/syntax_fix