-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply consistent symbol/string attribute transformation for Hash values
Symbol attribute keys are dasherized before rendering, whereas string keys are passed through verbatim. However if the value is a Hash, the dasherize transform will not be applied to the key even if it is a symbol. This change makes it so the dasherization is applied even in this case. ```rb a(data_turbo: { method: "post", confirm: "Are you sure?" }) ``` Should render ```html <a data-turbo-method="post" data-turbo-confirm="Are you sure?"></a> ```
- Loading branch information
1 parent
6a0eb85
commit bd65bd5
Showing
2 changed files
with
50 additions
and
2 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