1 class ApiClientAuthorizationsController < ApplicationController
4 items_available = m.items_available
5 offset = m.result_offset
7 filtered = m.to_ary.reject do |x|
8 x.api_client_id == 0 or (x.expires_at and x.expires_at < Time.now) rescue false
10 ArvadosApiClient::patch_paging_vars(filtered, items_available, offset, limit)
11 @objects = ArvadosResourceList.new(ApiClientAuthorization)
12 @objects.results= filtered