Cross Reference: license_model.rb
xref
: /
ontohub
/
app
/
models
/
license_model.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
license_model.rb revision b259caaf997a77772be96abeb9c403d01669b875
6b0f9cd2ee601121cb7fe1d9ad8ebce782aa8f39
Stephen Gallagher
class
LicenseModel
<
ActiveRecord
::
Base
6b0f9cd2ee601121cb7fe1d9ad8ebce782aa8f39
Stephen Gallagher
6b0f9cd2ee601121cb7fe1d9ad8ebce782aa8f39
Stephen Gallagher
has_and_belongs_to_many
:
ontologies
1008001f34abb42df75f840db17f14a83f0c21d4
Stephen Gallagher
b355dcb54194f498921743ca33304eac35d89718
Stephen Gallagher
attr_accessible
:
name
, :
description
, :
url
, :
ontology_id
2cb6f28b3a12bb714bf14494d31eb6b6fff64b8b
Jakub Hrozek
6b0f9cd2ee601121cb7fe1d9ad8ebce782aa8f39
Stephen Gallagher
validates
:
name
,
6b0f9cd2ee601121cb7fe1d9ad8ebce782aa8f39
Stephen Gallagher
presence
:
true
,
531661c7bb54eb71853977a64cb30f80c20b963e
Jakub Hrozek
uniqueness
:
true
,
6b0f9cd2ee601121cb7fe1d9ad8ebce782aa8f39
Stephen Gallagher
length
:
{
within
:
0
..
50
}
4c9419d98b89a6161a3dde11f9f80be39d12e72a
Jakub Hrozek
ad805face83ba7d67b1cf2067a1982c7e63d1060
Jakub Hrozek
validates
:
url
,
ad805face83ba7d67b1cf2067a1982c7e63d1060
Jakub Hrozek
:
format
=>
{ :
with
=>
URI
::
regexp
(
Settings.allowed
_iri_schemes
)
}
a7797068c4deb6ce2bdbcda27c45ff1bbb4a8e78
Jakub Hrozek
2ea6196484055397cc4bc011c5960f790431fa9d
Stephen Gallagher
end
1008001f34abb42df75f840db17f14a83f0c21d4
Stephen Gallagher