Sha256: bdafe450c30f7c397b5c84bc617f86537f56c5f15e20a2f9731f1eaa4a8775ec
Contents?: true
Size: 259 Bytes
Versions: 22
Compression:
Stored size: 259 Bytes
Contents
module ApiHelper private def authenticate!(client = @client || :spy) client = api_clients(client) if client.is_a?(Symbol) @client ||= client request.headers['Authorization'] = "Basic #{Base64.encode64(client.authentication_token)}" end end
Version data entries
22 entries across 22 versions & 1 rubygems