We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8241ae3 commit 65afc97Copy full SHA for 65afc97
1 file changed
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