don't 500 if someone's... logged out?

This commit is contained in:
Andrew Brown 2018-11-03 13:04:28 -05:00
parent 9994b6a246
commit e28b421efe

View File

@ -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