Cross Reference: logic.rb
xref
: /
ontohub
/
app
/
models
/
logic.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
logic.rb revision a0bfc54a3228b92b67f0338efd46be08265cd26f
class
Logic
<
ActiveRecord
::
Base
has_many
:
ontology_versions
has_many
:
supports
attr_accessible
:
name
, :
iri
, :
description
validates_presence_of
:
name
validates_uniqueness_of
:
name
,
if
: :
name_changed
?
validates_presence_of
:
iri
validates_uniqueness_of
:
iri
,
if
: :
iri_changed
?
validates_format_of
:
iri
,
with
:
URI
::
regexp
(
ALLOWED_URI_SCHEMAS
)
def
to_s
name
end
end