X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/eba617baa5f8f180f9a55777beeb228849b36a9e..134815098b060c232d1eee381d1eeb8e9d6162ff:/services/api/app/mailers/admin_notifier.rb diff --git a/services/api/app/mailers/admin_notifier.rb b/services/api/app/mailers/admin_notifier.rb index 36798bebe9..87a5699f49 100644 --- a/services/api/app/mailers/admin_notifier.rb +++ b/services/api/app/mailers/admin_notifier.rb @@ -1,8 +1,11 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + class AdminNotifier < ActionMailer::Base include AbstractController::Callbacks default from: Rails.configuration.admin_notifier_email_from - before_filter :load_variables def new_user(user) @user = user @@ -32,15 +35,4 @@ class AdminNotifier < ActionMailer::Base end end -private - def load_variables - if Rails.configuration.respond_to?('workbench_address') and - not Rails.configuration.workbench_address.nil? and - not Rails.configuration.workbench_address.empty? then - @wb_address = Rails.configuration.workbench_address.sub(/\/$/,'') + '/users' - else - @wb_address = '' - end - end - end