1 class ApiClientAuthorization < ArvadosModel
3 include CommonApiTemplate
7 after_initialize :assign_random_api_token
9 api_accessible :superuser, :extend => :common do |t|
14 t.add :created_by_ip_address
18 t.add :last_used_by_ip_address
21 def assign_random_api_token
22 self.api_token ||= rand(2**256).to_s(36)
29 self.user_id_changed? ? User.find(self.user_id_was).andand.uuid : self.user.andand.uuid
43 self.api_token_changed?
46 def modified_by_client
49 def modified_by_client=(x) end
54 def modified_by_user=(x) end
59 def modified_at=(x) end