Fix resque job failing #2

This commit is contained in:
DuratarskeyK 2016-05-03 15:42:47 +04:00
parent 58fc35c540
commit 8a4593a775
1 changed files with 1 additions and 1 deletions

View File

@ -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