Cross Reference:
xref
: /
ontohub
/
app
/
models
/
ontology
/
scopes.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
scopes.rb revision 823b204d13c129df1ae3b49ff62ee1da0c8f6b63
module
Ontology
::
Scopes
extend
ActiveSupport
::
Concern
included
do
scope
:
without_parent
,
where
(
'
ontologies.parent
_id'
=>
nil
)
scope
:
basepath
, ->
(
path
)
do
joins
(:
ontology_version
)
.
where
(
'
ontology_versions.basepath
'
=>
path
)
end
equal_scope
*%w
(
repository_id
)
end
end