Module: Spree::TokenResource::InstanceMethods

Defined in:
lib/spree/token_resource.rb

Instance Method Summary collapse

Instance Method Details

#create_tokenObject



12
13
14
15
# File 'lib/spree/token_resource.rb', line 12

def create_token
  create_tokenized_permission(:token => ActiveSupport::SecureRandom::hex(8))
  token
end