From 43b7c2c2eb6dce0e289c3d7c2e4655cff3f53f93 Mon Sep 17 00:00:00 2001 From: duratarskeyk Date: Thu, 17 Dec 2015 13:19:20 +0000 Subject: [PATCH] commented creating of repo, continuation --- app/models/concerns/git.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/models/concerns/git.rb b/app/models/concerns/git.rb index 8dcb575db..2509b762f 100644 --- a/app/models/concerns/git.rb +++ b/app/models/concerns/git.rb @@ -13,13 +13,13 @@ module Git validates_attachment_content_type :srpm, content_type: ['application/octet-stream', "application/x-rpm", "application/x-redhat-package-manager"], message: I18n.t('layout.invalid_content_type') #after_create :create_git_repo - after_commit(on: :create) {|p| p.fork_git_repo unless p.is_root?} # later with resque - after_commit(on: :create) {|p| p.import_attached_srpm if p.srpm?} # later with resque # should be after create_git_repo + #after_commit(on: :create) {|p| p.fork_git_repo unless p.is_root?} # later with resque + #after_commit(on: :create) {|p| p.import_attached_srpm if p.srpm?} # later with resque # should be after create_git_repo #after_destroy :destroy_git_repo # after_rollback -> { destroy_git_repo rescue true if new_record? } - later :import_attached_srpm, queue: :fork_import - later :fork_git_repo, queue: :fork_import + #later :import_attached_srpm, queue: :fork_import + #later :fork_git_repo, queue: :fork_import end def repo