forked from rubocop/rubocop-rails
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes auto-correct of content_tag with hyphenated tag name
Allow auto-correction of tag names with hyphen, e.g. `trix-editor` to `tag.trix_editor` instead of correcting to deprecated `tag('trix-editor')` syntax. The deprecated syntax does not support a content parameter, so the arguments in the corrected code were incorrect when correcting a method name with a hyphen and content, such as `content_tag('trix-editor' 'my content!')`
- Loading branch information
1 parent
d6cd35f
commit 9c1a40e
Showing
3 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters