Change callbacks order. Update docs. Refs #2136

This commit is contained in:
Pavel Chipiga 2011-10-28 20:15:35 +03:00
parent d5183ad652
commit 3114a70b9b
2 changed files with 4 additions and 4 deletions

View File

@ -29,10 +29,10 @@ class Project < ActiveRecord::Base
scope :addable_to_repository, lambda { |repository_id| where("projects.id NOT IN (SELECT project_to_repositories.project_id FROM project_to_repositories WHERE (project_to_repositories.repository_id != #{ repository_id }))") }
before_create :make_owner_rel
before_create :create_git_repo
before_update :update_git_repo
before_destroy :destroy_git_repo
after_create :attach_to_personal_repository
after_create :create_git_repo
before_update :update_git_repo
after_destroy :destroy_git_repo
def project_versions
self.git_repository.tags

View File

@ -18,7 +18,7 @@
* git clone git://github.com/sitaramc/gitolite
* cd gitolite
* src/gl-system-install
* gl-setup /tmp/ga_admin.pub
* gl-setup ~/ga_admin.pub # /tmp/ga_admin.pub
--------------- Settings for .gitolite.rc during install