You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

12 lines
356 B

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({ doctrine_id: @doctrine.id })
@annotations = search.results
end
end