Skip to content

Commit cbd28a2

Browse files
better description
1 parent 3100bed commit cbd28a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/concerns/turbo/broadcastable.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def broadcast_rendering_with_defaults(options)
310310
options.tap do |o|
311311
# Add the current instance into the locals with the element name (which is the un-namespaced name)
312312
# as the key. This parallels how the ActionView::ObjectRenderer would create a local variable.
313-
# Dont Override HTML and Inline options by :partial
313+
# if the html or inline options are passed it will skip setting a partial from #to_partial_path
314314
unless o.include?(:html) || o.include?(:inline)
315315
o[:locals] = (o[:locals] || {}).reverse_merge!(model_name.element.to_sym => self)
316316
o[:partial] ||= to_partial_path

0 commit comments

Comments
 (0)