Closed ghost closed 6 years ago
Maybe RULES.freeze = {
?
@johnunclesam the issue doesn't seem to be related to the gem. You or your IDE is using https://github.com/bbatsov/rubocop which checks the syntax of your code.
Add the # frozen_string_literal: true
comment on top of your file to make the strings defined in the file immutable
Add RULES = { ... }.freeze
to make your hash object immutable
I have this graphql_policy.rb:
Now using
rubocop
on it I got this:What we can do?