X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/4fd40fe19bb3837efe50971b5d9359b0c1c87c93..b5c15775caf865d8fed5d4839d4a082f6518bba4:/services/api/app/models/node.rb diff --git a/services/api/app/models/node.rb b/services/api/app/models/node.rb index 3f0e0b5616..f384ba582b 100644 --- a/services/api/app/models/node.rb +++ b/services/api/app/models/node.rb @@ -20,11 +20,10 @@ class Node < ArvadosModel # Only a controller can figure out whether or not the current API tokens # have access to the associated Job. They're expected to set # job_readable=true if the Job UUID can be included in the API response. - belongs_to :job, { - foreign_key: 'job_uuid', - primary_key: 'uuid', - optional: true, - } + belongs_to :job, + foreign_key: 'job_uuid', + primary_key: 'uuid', + optional: true attr_accessor :job_readable UNUSED_NODE_IP = '127.40.4.0'