Sha256: 27bb067bbe26817b8d3c04803f7c76255d38a5d5faa2ffb140f9d74305b4df8b
Contents?: true
Size: 347 Bytes
Versions: 2
Compression:
Stored size: 347 Bytes
Contents
# frozen_string_literal: true module Shipit module ApiClientsHelper def api_client_token(api_client) if api_client.created_at >= 5.minutes.ago && current_user == api_client.creator api_client.authentication_token else "#{api_client.authentication_token[0..5]}************************" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shipit-engine-0.39.0 | app/helpers/shipit/api_clients_helper.rb |
shipit-engine-0.38.0 | app/helpers/shipit/api_clients_helper.rb |