Fix resque job failing
This commit is contained in:
parent
a62d3789bc
commit
58fc35c540
|
@ -2,7 +2,7 @@ module EmptyMetadata
|
||||||
extend ActiveSupport::Concern
|
extend ActiveSupport::Concern
|
||||||
|
|
||||||
included do
|
included do
|
||||||
after_create :create_empty_metadata
|
after_commit :create_empty_metadata, on: :create
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_empty_metadata
|
def create_empty_metadata
|
||||||
|
|
Loading…
Reference in New Issue