This file contains hidden or 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
<%# Create a partial for generating a trigger element to be appended to the container in a turbo_stream %> | |
<% selectors ||= '' %> | |
<% | |
# As a convenience, we can use Array.wrap to turn the selector value into an array if it is not one, then use join(' ') to | |
# create a list that works nicely with the stimulus controller. | |
%> | |
<div data-refresh-target='trigger' data-selctors='<%= Array.wrap(selectors).join(" ") %>' |