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.
 
 
 
 
 

16 lines
389 B

module Api
module Jurisprudence
class DoctrinesController < ::Api::BaseController
load_and_authorize_resource :jurisprudence, class: "Cdao::Jurisprudence"
load_and_authorize_resource :doctrine, class: "Doctrine", through: :jurisprudence
def index
respond_with @doctrines
end
def show
respond_with @doctrine
end
end
end
end