Skip to content

Commit

Permalink
Update cop description
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Dec 29, 2018
1 parent a7eb2a6 commit f78531e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions lib/rubocop/cop/rails/helper_instance_variable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ module Rails
# This cop checks for use of the helper methods which reference
# instance variables.
#
# Relying on the existing of a particular instance variable
# makes it difficult to re-use helper methods in different
# contexts.
# Relying on instance variables makes it difficult to re-use helper
# methods.
#
# If it seems awkward to explicitly pass in each dependent
# variable, consider moving the behaviour elsewhere, for
Expand Down
5 changes: 2 additions & 3 deletions manual/cops_rails.md
Original file line number Diff line number Diff line change
Expand Up @@ -813,9 +813,8 @@ Enabled | No
This cop checks for use of the helper methods which reference
instance variables.

Relying on the existing of a particular instance variable
makes it difficult to re-use helper methods in different
contexts.
Relying on instance variables makes it difficult to re-use helper
methods.

If it seems awkward to explicitly pass in each dependent
variable, consider moving the behaviour elsewhere, for
Expand Down

0 comments on commit f78531e

Please sign in to comment.