projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix job_task qsequence and delete_all usage
[arvados.git]
/
services
/
api
/
app
/
models
/
api_client_authorization.rb
1
class ApiClientAuthorization < ActiveRecord::Base
2
belongs_to :api_client
3
belongs_to :user
4
after_initialize :assign_random_api_token
5
6
def assign_random_api_token
7
self.api_token ||= rand(2**256).to_s(36)
8
end
9
end