We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3100bed commit cbd28a2Copy full SHA for cbd28a2
app/models/concerns/turbo/broadcastable.rb
@@ -310,7 +310,7 @@ def broadcast_rendering_with_defaults(options)
310
options.tap do |o|
311
# Add the current instance into the locals with the element name (which is the un-namespaced name)
312
# as the key. This parallels how the ActionView::ObjectRenderer would create a local variable.
313
- # Dont Override HTML and Inline options by :partial
+ # if the html or inline options are passed it will skip setting a partial from #to_partial_path
314
unless o.include?(:html) || o.include?(:inline)
315
o[:locals] = (o[:locals] || {}).reverse_merge!(model_name.element.to_sym => self)
316
o[:partial] ||= to_partial_path
0 commit comments