From 58fc35c540a6131b5abe56982b28422ce3c8e2df Mon Sep 17 00:00:00 2001 From: DuratarskeyK Date: Tue, 3 May 2016 15:33:40 +0400 Subject: [PATCH] Fix resque job failing --- app/models/concerns/empty_metadata.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/concerns/empty_metadata.rb b/app/models/concerns/empty_metadata.rb index 3f3707480..0f8fa5927 100644 --- a/app/models/concerns/empty_metadata.rb +++ b/app/models/concerns/empty_metadata.rb @@ -2,7 +2,7 @@ module EmptyMetadata extend ActiveSupport::Concern included do - after_create :create_empty_metadata + after_commit :create_empty_metadata, on: :create end def create_empty_metadata