Sha256: 44968ac50a0cc9773fe8ff55ba2eb36555b1f07f901148c3a043ca5f039c1fab
Contents?: true
Size: 443 Bytes
Versions: 16
Compression:
Stored size: 443 Bytes
Contents
Server.api :list_sources do |params,user| sources = App.load(APP_NAME).sources.members 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.partition_type and s.partition_type == params[:partition_type].to_sym res << name end end res.to_json end end
Version data entries
16 entries across 16 versions & 1 rubygems