From e28b421efeeaca552c34e680bcbc641579e5a435 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Sat, 3 Nov 2018 13:04:28 -0500 Subject: [PATCH] don't 500 if someone's... logged out? --- app/controllers/main_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/main_controller.rb b/app/controllers/main_controller.rb index c5b8837b..a35ab38d 100644 --- a/app/controllers/main_controller.rb +++ b/app/controllers/main_controller.rb @@ -37,6 +37,7 @@ class MainController < ApplicationController def recent_content # todo optimize this / use Attributes + return [] if @activated_content_types.nil? @recent_edits = @activated_content_types.flat_map { |klass| klass.constantize