Skip to content

Commit

Permalink
Disable helper instance variables
Browse files Browse the repository at this point in the history
Look, if you're the kind of person to use Rails helpers, you should know that with Great Globals comes Great Responsibility to know what you're doing with respect to mucking with state. There are countless reasons you might want to memoize an expensive operation in a helper for the life of a request so that you can repeatedly invoke a helper without paying that cost N times
  • Loading branch information
searls committed Aug 26, 2024
1 parent 67863a3 commit 2733934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ Rails/HasManyOrHasOneDependent:
Enabled: false

Rails/HelperInstanceVariable:
Enabled: true
Enabled: false

Rails/HttpPositionalArguments:
Enabled: true
Expand Down

0 comments on commit 2733934

Please sign in to comment.