Sha256: fedf01f83a7e983e4623f589a54b692a907eab12d5c860c21e71bbff500a34ba
Contents?: true
Size: 508 Bytes
Versions: 1
Compression:
Stored size: 508 Bytes
Contents
# Server.api4 :reset, :post, "/rc/#{Rhoconnect::API_VERSION}/system/reset", true, {:verb => :post, :url => ['/api/reset', '/api/admin/reset']} do |params,user| # keep_token = user.token.value # Store.flush_all # app_klass = Object.const_get(camelize(APP_NAME)) # if app_klass.singleton_methods.map(&:to_sym).include?(:initializer) # app_klass.send :initializer, Rhoconnect.base_directory # end # # restoring previous token value after flushdb # user.token = keep_token # "DB reset" # end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rhoconnect-4.0.0.beta.10 | lib/rhoconnect/api/system/reset.rb |