diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 4f440541984..05583e520c0 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -450,8 +450,7 @@ module ApplicationHelper end def server_plugin_outlet(name, locals: {}) - # Don't evaluate plugins in test - return "" if Rails.env.test? + return "" if !GlobalSetting.load_plugins? matcher = Regexp.new("/connectors/#{name}/.*\.html\.erb$") erbs = ApplicationHelper.all_connectors.select { |c| c =~ matcher }