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-1.4.0 lib/turbo-rails.rb
turbo-rails-1.3.3 lib/turbo-rails.rb
turbo-rails-1.3.2 lib/turbo-rails.rb
turbo-rails-1.3.1 lib/turbo-rails.rb
turbo-rails-1.3.0 lib/turbo-rails.rb
turbo-rails-1.1.1 lib/turbo-rails.rb
turbo-rails-1.1.0 lib/turbo-rails.rb
turbo-rails-1.0.1 lib/turbo-rails.rb
turbo-rails-1.0.0 lib/turbo-rails.rb
turbo-rails-0.9.1 lib/turbo-rails.rb
turbo-rails-0.9.0 lib/turbo-rails.rb
turbo-rails-0.8.3 lib/turbo-rails.rb
turbo-rails-0.8.2 lib/turbo-rails.rb
turbo-rails-0.8.1 lib/turbo-rails.rb
turbo-rails-0.8.0 lib/turbo-rails.rb
turbo-rails-0.7.15 lib/turbo-rails.rb
turbo-rails-0.7.14 lib/turbo-rails.rb
turbo-rails-0.7.13 lib/turbo-rails.rb
turbo-rails-0.7.12 lib/turbo-rails.rb
turbo-rails-0.7.11 lib/turbo-rails.rb