Cross Reference: projects_controller.rb
xref
: /
ontohub
/
app
/
controllers
/
projects_controller.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
projects_controller.rb revision 3f2e11b6294f92d3434551cdbbf10d952a52d478
class
ProjectsController
<
InheritedResources
::
Base
belongs_to
:
ontology
before_filter
:
check_read_permissions
def
index
@
ontology
=
Ontology.find
(
params
[:
ontology_id
])
@
projects
=
Project.where
(
ontology
: @
ontology
)
end
protected
def
check_read_permissions
authorize
! :
show
,
parent.repository
if
parent.is
_a
?
Ontology
end
end