Sha256: 4e364285f8a9b0369490e0c98624920702df1fcbe0eb554a483ba0be78adcacd

Contents?: true

Size: 278 Bytes

Versions: 31

Compression:

Stored size: 278 Bytes

Contents

Server.api :list_source_docs do |params,user|
  res = {}
  s = Source.load(params[:source_id], {:app_id => APP_NAME,:user_id => params[:user_id]})
  [:md,:md_size,:md_copy,:errors].each do |doc|
    db_key = s.docname(doc)
    res.merge!(doc => db_key)
  end
  res.to_json
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
rhosync-2.1.18.beta2 lib/rhosync/api/list_source_docs.rb
rhosync-2.1.18.beta1 lib/rhosync/api/list_source_docs.rb
rhosync-2.1.17 lib/rhosync/api/list_source_docs.rb
rhosync-2.1.17.beta7 lib/rhosync/api/list_source_docs.rb
rhosync-2.1.17.beta6 lib/rhosync/api/list_source_docs.rb
rhosync-2.1.17.beta5 lib/rhosync/api/list_source_docs.rb
rhosync-2.1.17.beta4 lib/rhosync/api/list_source_docs.rb
rhosync-2.1.17.beta3 lib/rhosync/api/list_source_docs.rb
rhosync-2.1.17.beta2 lib/rhosync/api/list_source_docs.rb
rhosync-2.1.17.beta1 lib/rhosync/api/list_source_docs.rb
rhosync-2.1.16 lib/rhosync/api/list_source_docs.rb
rhosync-2.1.15 lib/rhosync/api/list_source_docs.rb
rhosync-2.1.14 lib/rhosync/api/list_source_docs.rb
rhosync-2.1.13 lib/rhosync/api/list_source_docs.rb
rhosync-2.1.12 lib/rhosync/api/list_source_docs.rb
rhosync-2.1.11 lib/rhosync/api/list_source_docs.rb
rhosync-2.1.10 lib/rhosync/api/list_source_docs.rb
rhosync-2.1.7 lib/rhosync/api/list_source_docs.rb
rhosync-2.1.6 lib/rhosync/api/list_source_docs.rb
rhosync-2.1.3 lib/rhosync/api/list_source_docs.rb