Module: Turbo

Extended by:
ActiveSupport::Autoload
Defined in:
lib/turbo-rails.rb,
lib/turbo/engine.rb,
lib/turbo/version.rb,
lib/turbo/test_assertions.rb

Defined Under Namespace

Modules: Broadcastable, DriveHelper, FramesHelper, IncludesHelper, StreamsHelper, TestAssertions Classes: Engine, StreamsChannel

Constant Summary collapse

VERSION =
"0.5.2"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.signed_stream_verifier_keyObject



13
14
15
# File 'lib/turbo-rails.rb', line 13

def signed_stream_verifier_key
  @signed_stream_verifier_key or raise ArgumentError, "Turbo requires a signed_stream_verifier_key"
end

Class Method Details

.signed_stream_verifierObject



9
10
11
# File 'lib/turbo-rails.rb', line 9

def signed_stream_verifier
  @signed_stream_verifier ||= ActiveSupport::MessageVerifier.new(signed_stream_verifier_key, digest: "SHA256", serializer: JSON)
end