Sha256: 034aec531142b71a82e0d625819ac69d463bb70a19584eefa2b7a06f28bb2f29

Contents?: true

Size: 334 Bytes

Versions: 3

Compression:

Stored size: 334 Bytes

Contents

# frozen_string_literal: true

# An adapter for the turbo-rails <code>turbo_stream</code> helper.
# @see https://github.com/hotwired/turbo-rails
module Phlex::Rails::Helpers::TurboStream
	extend Phlex::Rails::HelperMacros

	def turbo_stream(...)
		Phlex::Rails::Buffered.new(
			helpers.turbo_stream(...),
			view: self,
		)
	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
phlex-rails-2.0.0.rc1 lib/phlex/rails/helpers/turbo_stream.rb
phlex-rails-2.0.0.beta2 lib/phlex/rails/helpers/turbo_stream.rb
phlex-rails-2.0.0.beta1 lib/phlex/rails/helpers/turbo_stream.rb