Method: Superview::Helpers::Turbo#stream_from
- Defined in:
- lib/superview/helpers/turbo.rb
#stream_from(*streamables) ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/superview/helpers/turbo.rb', line 16 def stream_from(*streamables) streamables.each do |streamable| case streamable in association: ActiveRecord::Relation association.each { turbo_stream_from streamable } else turbo_stream_from streamable end end end |