X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/72d24b26cac507988ba6583064451b81d1854d78..3f0ec839af28e56eb94bc9507ab59df1e670e59f:/services/api/app/mailers/user_notifier.rb diff --git a/services/api/app/mailers/user_notifier.rb b/services/api/app/mailers/user_notifier.rb index 1f9ad8c8ae..7c96d718cc 100644 --- a/services/api/app/mailers/user_notifier.rb +++ b/services/api/app/mailers/user_notifier.rb @@ -2,22 +2,10 @@ class UserNotifier < ActionMailer::Base include AbstractController::Callbacks default from: Rails.configuration.user_notifier_email_from - before_filter :load_variables def account_is_setup(user) @user = user - mail(to: user.email, subject: 'Welcome to Curoverse') - 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 - else - @wb_address = '(Unfortunately, config.workbench_address is not set, please contact your site administrator)' - end + mail(to: user.email, subject: 'Welcome to Curoverse - shell account enabled') end end