From 8a4593a775517d824886143b09d9275db8b9d9bf Mon Sep 17 00:00:00 2001 From: DuratarskeyK Date: Tue, 3 May 2016 15:42:47 +0400 Subject: [PATCH] Fix resque job failing #2 --- app/models/platform.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/platform.rb b/app/models/platform.rb index 3da37b658..5cf662b15 100644 --- a/app/models/platform.rb +++ b/app/models/platform.rb @@ -92,7 +92,7 @@ class Platform < ActiveRecord::Base after_update :freeze_platform_and_update_repos after_update :update_owner_relation - after_create -> { symlink_directory unless hidden? } + after_commit -> { symlink_directory unless hidden? }, on: :create after_destroy -> { remove_symlink_directory unless hidden? } accepts_nested_attributes_for :platform_arch_settings, allow_destroy: true