File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 863
863
This cop checks legacy syntax usage of `tag`
864
864
865
865
NOTE: Allow `tag` when the first argument is a variable because
866
- `tag(name)` is simpler rather than `tag.public_send(name)`.
867
- And this cop will be renamed to something like `LegacyTag` in the future. (e.g. RuboCop Rails 2.0)
866
+ `tag(name)` is simpler rather than `tag.public_send(name)`.
867
+ And this cop will be renamed to something like `LegacyTag` in the future. (e.g. RuboCop Rails 2.0)
868
868
869
869
=== Examples
870
870
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ module Rails
6
6
# This cop checks legacy syntax usage of `tag`
7
7
#
8
8
# NOTE: Allow `tag` when the first argument is a variable because
9
- # `tag(name)` is simpler rather than `tag.public_send(name)`.
10
- # And this cop will be renamed to something like `LegacyTag` in the future. (e.g. RuboCop Rails 2.0)
9
+ # `tag(name)` is simpler rather than `tag.public_send(name)`.
10
+ # And this cop will be renamed to something like `LegacyTag` in the future. (e.g. RuboCop Rails 2.0)
11
11
#
12
12
# @example
13
13
# # bad
You can’t perform that action at this time.
0 commit comments