X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8048da32800fab790b68f502c52dd00c89b5b690..03e570095885982d23e234bce8e1c068314b63af:/services/api/app/controllers/arvados/v1/users_controller.rb diff --git a/services/api/app/controllers/arvados/v1/users_controller.rb b/services/api/app/controllers/arvados/v1/users_controller.rb index 08368cb5ef..c2a32f02f1 100644 --- a/services/api/app/controllers/arvados/v1/users_controller.rb +++ b/services/api/app/controllers/arvados/v1/users_controller.rb @@ -74,7 +74,7 @@ class Arvados::V1::UsersController < ApplicationController head_uuid: required_uuids). collect(&:head_uuid) todo_uuids = required_uuids - signed_uuids - if todo_uuids == [] + if todo_uuids.empty? @object.update_attributes is_active: true logger.info "User #{@object.uuid} activated" else @@ -147,10 +147,10 @@ class Arvados::V1::UsersController < ApplicationController protected - def self._setup_requires_parameters + def self._setup_requires_parameters { send_notification_email: { type: 'boolean', required: true }, - } + } end end