Cross Reference: import.rb
xref
: /
ontohub
/
app
/
models
/
ontology
/
import.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
import.rb revision 511ba3e3d7deb4a13a03ce522a99a0395acc61b7
module
Ontology
::
Import
extend
ActiveSupport
::
Concern
def
import_latest_version
(
user
)
import_version
(
versions.last
,
user
)
end
def
import_version
(
version
,
user
,
io
)
return
if
version.nil
?
evaluator
=
Hets
::
Evaluator.new
(
user
,
version.ontology
,
version
:
version
,
io
:
io
)
evaluator.import
end
end