Cross Reference: task.rb
xref
: /
ontohub
/
app
/
models
/
task.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
132
N/A
class
Task
<
ActiveRecord
::
Base
132
N/A
132
N/A
scope
:
not_empty
,
joins
(:
ontologies
)
.
group
(
'
tasks.id
'
)
132
N/A
132
N/A
has_and_belongs_to_many
:
ontologies
132
N/A
132
N/A
attr_accessible
:
name
, :
description
132
N/A
132
N/A
validates
:
name
,
132
N/A
presence
:
true
,
132
N/A
uniqueness
:
true
,
132
N/A
length
:
{
within
:
0
..
50
}
132
N/A
132
N/A
def
to_s
132
N/A
name
132
N/A
end
132
N/A
132
N/A
def
name_with_ontology_count
132
N/A
"#{self} (#{
self.ontologies.count
})"
132
N/A
end
132
N/A
end
132
N/A