diff --git a/app/models/platform.rb b/app/models/platform.rb index a8290482f..64622e0b1 100644 --- a/app/models/platform.rb +++ b/app/models/platform.rb @@ -7,7 +7,7 @@ class Platform < ActiveRecord::Base validates :unixname, :uniqueness => true, :presence => true, :format => { :with => /^[a-zA-Z0-9\-.]+$/ }, :allow_nil => false, :allow_blank => false before_create :xml_rpc_create - before_destroy :xml_rpc_destroy + #before_destroy :xml_rpc_destroy before_update :check_freezing diff --git a/app/models/project.rb b/app/models/project.rb index a8e67f546..d4653f82a 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -9,9 +9,9 @@ class Project < ActiveRecord::Base scope :recent, order("name ASC") - #before_create :create_directory, :create_git_repo before_create :xml_rpc_create - before_destroy :xml_rpc_destroy + before_create :create_directory, :create_git_repo + #before_destroy :xml_rpc_destroy # Redefining a method from Project::HasRepository module to reflect current situation def git_repo_path diff --git a/app/models/repository.rb b/app/models/repository.rb index 89d340aab..52d8680f4 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -8,7 +8,7 @@ class Repository < ActiveRecord::Base scope :recent, order("name ASC") before_create :xml_rpc_create - before_destroy :xml_rpc_destroy + #before_destroy :xml_rpc_destroy def path build_path(unixname)