Use current_user to select API response template. fixes #1594
[arvados.git] / services / api / app / models / api_client.rb
1 class ApiClient < ActiveRecord::Base
2   include AssignUuid
3   include KindAndEtag
4   include CommonApiTemplate
5   has_many :api_client_authorizations
6
7   api_accessible :user, extend: :common do |t|
8     t.add :name
9     t.add :url_prefix
10     t.add :is_trusted
11   end
12 end