Skip to content

Commit f78531e

Browse files
committed
Update cop description
1 parent a7eb2a6 commit f78531e

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

lib/rubocop/cop/rails/helper_instance_variable.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ module Rails
66
# This cop checks for use of the helper methods which reference
77
# instance variables.
88
#
9-
# Relying on the existing of a particular instance variable
10-
# makes it difficult to re-use helper methods in different
11-
# contexts.
9+
# Relying on instance variables makes it difficult to re-use helper
10+
# methods.
1211
#
1312
# If it seems awkward to explicitly pass in each dependent
1413
# variable, consider moving the behaviour elsewhere, for

manual/cops_rails.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -813,9 +813,8 @@ Enabled | No
813813
This cop checks for use of the helper methods which reference
814814
instance variables.
815815

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

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

0 commit comments

Comments
 (0)