Cross Reference:
xref
: /
ontohub
/
app
/
models
/
entity.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
entity.rb revision 48c232c64e7f7396ddec7182eeb5af76e24676c3
32
N/A
class
Entity
<
ActiveRecord
::
Base
32
N/A
1634
N/A
include
Metadatable
32
N/A
include
Entity
::
Searching
32
N/A
919
N/A
belongs_to
:
ontology_version
919
N/A
has_and_belongs_to_many
:
sentences
919
N/A
919
N/A
scope
:
kind
, ->
(
kind
)
{
where
:
kind
=>
kind
}
919
N/A
919
N/A
delegate
:
ontology
, :
to
=> :
ontology_version
919
N/A
919
N/A
def
self.grouped
_by_kind
919
N/A
select
(
'kind, count(*) AS count'
)
.
group
(:
kind
)
.
order
(
'count DESC, kind'
)
.
all
919
N/A
end
919
N/A
919
N/A
def
ontology_id
919
N/A
ontology.id
919
N/A
end
919
N/A
919
N/A
end
919
N/A