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 273b30f33fe1a753893887c8eb94f8078cc96928
98
N/A
class
ProofAttemptsController
<
InheritedResources
::
Base
98
N/A
belongs_to
:
theorem
98
N/A
actions
:
index
, :
show
98
N/A
helper_method
:
ontology
, :
theorem
98
N/A
before_filter
:
check_read_permissions
98
N/A
98
N/A
protected
98
N/A
98
N/A
def
theorem
98
N/A
@
theorem
||=
Theorem.find
(
params
[:
theorem_id
])
98
N/A
end
98
N/A
98
N/A
def
ontology
98
N/A
@
ontology
||=
Ontology.find
(
params
[:
ontology_id
])
98
N/A
end
98
N/A
98
N/A
def
check_read_permissions
98
N/A
authorize
! :
show
,
ontology.repository
98
N/A
end
98
N/A
end
98
N/A