From 31258272c225d8b5075416920fddd74a2806b9a9 Mon Sep 17 00:00:00 2001 From: Ahmad Farhat Date: Fri, 14 Feb 2020 10:03:16 -0500 Subject: [PATCH] GRN2-265: No longer throws 500 if provider not included (#944) * No longer throws 500 if provider not included * Rubocop fix --- app/controllers/application_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index b220d2a3..47ec8ea6 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -220,6 +220,7 @@ class ApplicationController < ActionController::Base logger.error "Error in retrieve provider info: #{e}" # Use the default site settings @user_domain = "greenlight" + @settings = Setting.find_or_create_by(provider: @user_domain) if e.message.eql? "No user with that id exists" render "errors/greenlight_error", locals: { message: I18n.t("errors.not_found.user_not_found.message"),