mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
don't 500 if someone's... logged out?
This commit is contained in:
parent
9994b6a246
commit
e28b421efe
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user