class Document::DoctrinesController < ApplicationController include AnnotationSearch load_and_authorize_resource :document, class: "Cdao::Jurisprudence" load_and_authorize_resource :doctrine, class: "Doctrine", through: :document def show search = annotation_search(params.permit(:page, :per_page)) @annotations = search.results end end