Cross Reference: errors_controller.rb
xref
: /
ontohub
/
app
/
controllers
/
errors_controller.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
class
ErrorsController
<
InheritedResources
::
Base
belongs_to
:
repository
,
finder
: :
find_by_path
!
actions
:
index
before_filter
:
index
, :
check_read_permissions
def
index
ontos
=
parent.ontologies.without
_parent
@
orphans
=
ontos.select
{|o|
o.versions.empty
? }
@
failed_versions
=
parent.failed
_ontology_versions
end
protected
def
check_read_permissions
authorize
! :
show
,
parent
end
end