Defect #4725 ยป repository_patch.diff
app/models/repository.rb (Arbeitskopie) | ||
---|---|---|
24 | 24 |
# has_many :changesets, :dependent => :destroy is too slow for big repositories |
25 | 25 |
before_destroy :clear_changesets |
26 | 26 |
|
27 |
default_url_options[:host] = 'localhost' |
|
28 | ||
27 | 29 |
# Checks if the SCM is enabled when creating a repository |
28 | 30 |
validate_on_create { |r| r.errors.add(:type, :invalid) unless Setting.enabled_scm.include?(r.class.name.demodulize) } |
29 | 31 |
|