Sha256: 87da194d2a4122df906770ef82e53a4e0fc548c3c0046a01635b5cb4cdf9a7c5

Contents?: true

Size: 277 Bytes

Versions: 1

Compression:

Stored size: 277 Bytes

Contents

require 'active_support/message_verifier'

class GlobalID
  class Verifier < ActiveSupport::MessageVerifier
    private
      def encode(data)
        ::Base64.urlsafe_encode64(data)
      end

      def decode(data)
        ::Base64.urlsafe_decode64(data)
      end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
globalid-1.1.0 lib/global_id/verifier.rb