Sha256: 7881957044b18130818240803f1e66cc6e40a28a140374295042ef0faefd3cc2
Contents?: true
Size: 454 Bytes
Versions: 7
Compression:
Stored size: 454 Bytes
Contents
Server.api :list_sources, :source do |params,user| sources = App.load(APP_NAME).sources if params['partition_type'].nil? or params['partition_type'] == 'all' sources.to_json else res = [] sources.each do |name| s = Source.load(name,{:app_id => APP_NAME,:user_id => '*'}) if s and s.partition_type and s.partition_type == params['partition_type'].to_sym res << name end end res.to_json end end
Version data entries
7 entries across 7 versions & 1 rubygems