Cross Reference: history_helper.rb
xref
: /
ontohub
/
app
/
helpers
/
history_helper.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
module
HistoryHelper
def
repository
@
repository
||=
Repository.find
_by_path
!
(
params
[:
repository_id
])
end
def
ontology
@
ontology
||=
repository.primary
_ontology
(
path
)
end
def
ref
params
[:
ref
] ||
'master'
end
def
commit_id
@
commit_id
||=
repository.commit
_id
(
params
[:
ref
])
end
def
oid
@
oid
||=
commit_id
[:
oid
]
unless
commit_id.nil
?
end
def
path
params
[:
path
]
end
end