Sha256: e8aa5b0e2c2c88d04837dcec9c8062759c5c2caa8ca7267df08e95c0cae4e4ee

Contents?: true

Size: 508 Bytes

Versions: 1

Compression:

Stored size: 508 Bytes

Contents

require "turbo/engine"

module Turbo
  extend ActiveSupport::Autoload

  mattr_accessor :draw_routes, default: true

  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

1 entries across 1 versions & 1 rubygems

Version Path
turbo-rails-1.5.0 lib/turbo-rails.rb