Project

General

Profile

Defect #4725 ยป repository_patch.diff

Patch for the Repository model - Marko Roeder, 2011-01-18 17:03

View differences:

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
  
    (1-1/1)