Skip to content

Commit

Permalink
Update app/models/turbo/streams/tag_builder.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Radan Skorić <[email protected]>
  • Loading branch information
AlexKovynev and radanskoric authored Aug 21, 2024
1 parent 82ae81e commit 115a320
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/turbo/streams/tag_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def remove_all(targets)
# <%= turbo_stream.replace "clearance_5" do %>
# <div id='clearance_5'>Replace the dom target identified by clearance_5</div>
# <% end %>
# <%= turbo_stream.replace clearance, "<div>Morph the dom target</div>", method: :morph %>
def replace(target, content = nil, method: nil, **rendering, &block)
action :replace, target, content, method: method, **rendering, &block
end
Expand Down

0 comments on commit 115a320

Please sign in to comment.