Cross Reference: proof_attempts_controller.rb
xref
: /
ontohub
/
app
/
controllers
/
proof_attempts_controller.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
proof_attempts_controller.rb revision 908d37cfe7f3316562011ad7f90bf9ce5cad6e41
class
ProofAttemptsController
<
InheritedResources
::
Base
actions
:
show
helper_method
:
ontology
before_filter
:
check_read_permissions
protected
def
ontology
@
ontology
||=
Ontology.find
(
params
[:
ontology_id
])
end
def
check_read_permissions
authorize
! :
show
,
ontology.repository
end
end