Sha256: 15049d0ed091163faa6d0b3152a8b44cbf07076bdf7a4fbc9a84f8d17995ed92
Contents?: true
Size: 323 Bytes
Versions: 2
Compression:
Stored size: 323 Bytes
Contents
module Spree module UserApiAuthentication def generate_spree_api_key! self.spree_api_key = SecureRandom.hex(24) save! end def generate_spree_api_key self.spree_api_key = SecureRandom.hex(24) end def clear_spree_api_key! self.spree_api_key = nil save! end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_core-1.0.7 | app/models/concerns/spree/user_api_authentication.rb |
solidus_core-1.0.6 | app/models/concerns/spree/user_api_authentication.rb |