Cross Reference: repository.rb
xref
: /
sssd-io
/
src
/
man
/
po
/
Makefile.am
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
repository.rb revision b3d0a03d866957dacb2ef7ae7805c91e09fc858c
class
Repository
<
ActiveRecord
::
Base
include
Permissionable
include
Repository
::
Access
include
Repository
::
Destroying
include
Repository
::
Git
include
Repository
::
Importing
include
Repository
::
Ontologies
include
Repository
::
Scopes
include
Repository
::
Symlink
include
Repository
::
Validations
DEFAULT_CLONE_TYPE
=
'git'
class
Error
< ::
StandardError
;
end
class
DeleteError
<
Error
;
end
has_many
:
ontologies
,
dependent
: :
destroy
has_many
:
url_maps
,
dependent
: :
destroy
has_many
:
commits
,
dependent
: :
destroy
attr_accessible
:
name
,
:
description
,
:
source_type
,
:
source_address
,
:
remote_type
,
:
access
,
:
destroy_job_id
,
:
is_destroying
attr_accessor
:
user
before_validation
:
set_path
after_save
:
clear_readers
scope
:
latest
,
order
(
'updated_at DESC'
)
def
to_s
name
end
def
to_param
path
end
def
blank
?
!
self
end
def
set_path
self.path
||=
name.parameterize
if
name
end
end