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.
2 parents 4bf3c0b + 65afc97 commit 30cd8fcCopy full SHA for 30cd8fc
app/models/concerns/turbo/broadcastable.rb
@@ -518,7 +518,7 @@ def broadcast_rendering_with_defaults(options)
518
options.tap do |o|
519
# Add the current instance into the locals with the element name (which is the un-namespaced name)
520
# as the key. This parallels how the ActionView::ObjectRenderer would create a local variable.
521
- o[:locals] = (o[:locals] || {}).reverse_merge(model_name.element.to_sym => self).compact
+ o[:locals] = (o[:locals] || {}).reverse_merge(model_name.element.to_sym => self)
522
523
if o[:html] || o[:partial]
524
return o
0 commit comments