Sha256: 0379f5db66385dc387c360980d04ca004b1f41c0daeae7b8b2189ead467b8c39
Contents?: true
Size: 407 Bytes
Versions: 60
Compression:
Stored size: 407 Bytes
Contents
# frozen_string_literal: true module Ibrain module UserApiAuthentication def generate_ibrain_api_key! generate_ibrain_api_key save! end def generate_ibrain_api_key self.ibrain_api_key = SecureRandom.hex(24) end def clear_ibrain_api_key! clear_ibrain_api_key save! end def clear_ibrain_api_key self.ibrain_api_key = nil end end end
Version data entries
60 entries across 60 versions & 1 rubygems