forked from rails/rails
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow dom_id method to accept an array of records_or_classes
ref: https://discuss.rubyonrails.org/t/allow-dom-id-method-to-accept-multiple-ids-models/84408 If the first argument (records_or_classes) is an array, this change will loop through each value and form a singular dom id, then join the parts together. This change will allow turbo frame tags to accept multiple models (similar to the `cache` helper from ActionView). ``` <%= turbo_frame_tag [customer, field] do %> <!-- code --> <% end %> ``` See also: hotwired/turbo-rails#476
- Loading branch information
Justin Wilson
committed
Jan 8, 2024
1 parent
4470ad7
commit 6ea12c3
Showing
3 changed files
with
39 additions
and
4 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