Sha256: d8b3d26647ab75087b1b0027b67f00fe3926f1941fd4c8a95cb5ae8501bf188a
Contents?: true
Size: 244 Bytes
Versions: 45
Compression:
Stored size: 244 Bytes
Contents
if Spree.user_class Spree.user_class.class_eval do def generate_spree_api_key! self.spree_api_key = SecureRandom.hex(24) save! end def clear_spree_api_key! self.spree_api_key = nil save! end end end
Version data entries
45 entries across 45 versions & 2 rubygems