<%# This sidebar partial uses instantiated ContentPage models instead of the persisted content models (Character, Location, etc) TODO: merge this with documents/components/smart_sidebar %> <%# todo extract "sidebar" and call it with @content, then also do the same in documents/components/smart_sidebar %> <% raw_model = content.page_type.constantize.find_by(id: content.id, user: current_user) serialized_entity = ContentSerializer.new(raw_model) %>