X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/401c2c71179825e6c3350177c0f46c503d66a061..525e81bdbe18ea369f5a61a713e743608bab2e42:/services/api/app/models/node.rb?ds=sidebyside 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'