Sha256: 792b78398b50bc6b6776f1a8feab2b598a866a7508538c4d0b184da10c62bb67

Contents?: true

Size: 462 Bytes

Versions: 44

Compression:

Stored size: 462 Bytes

Contents

require "turbo/engine"

module Turbo
  extend ActiveSupport::Autoload

  class << self
    attr_writer :signed_stream_verifier_key

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

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

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
turbo-rails-0.5.3 lib/turbo-rails.rb
turbo-rails-0.5.2 lib/turbo-rails.rb
turbo-rails-0.5.1 lib/turbo-rails.rb
turbo-rails-0.5.0 lib/turbo-rails.rb