Cross Reference: theorems_controller.rb
xref
: /
ontohub
/
app
/
controllers
/
theorems_controller.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
theorems_controller.rb revision 519e88f060555171716c8161ab5549e6f29fede6
#
# Lists theorems of an ontology
#
class
TheoremsController
<
InheritedResources
::
Base
belongs_to
:
ontology
actions
:
index
respond_to
:
json
, :
xml
has_pagination
before_filter
:
check_read_permissions
protected
def
check_read_permissions
authorize
! :
show
,
parent.repository
end
end