Sha256: bacced46de8e277f53f8b67633942b86d2b90b0530fb356929a6e4438f620055
Contents?: true
Size: 165 Bytes
Versions: 58
Compression:
Stored size: 165 Bytes
Contents
def authenticate_api_as(user) auth_token = user.respond_to?(:auth_token) ? user.auth_token : user request.env['HTTP_AUTHORIZATION'] = "Token #{auth_token}" end
Version data entries
58 entries across 58 versions & 2 rubygems