Fixed: NotImplementedError #sha1_of_file_store_files
This commit is contained in:
parent
9e73646f91
commit
535ef43364
|
@ -2,11 +2,14 @@ module FileStoreClean
|
|||
extend ActiveSupport::Concern
|
||||
|
||||
included do
|
||||
later :destroy, queue: :middle
|
||||
later :later_destroy_files_from_file_store, queue: :middle
|
||||
end
|
||||
|
||||
def destroy
|
||||
destroy_files_from_file_store if Rails.env.production?
|
||||
super
|
||||
end
|
||||
later :destroy, queue: :middle
|
||||
|
||||
def sha1_of_file_store_files
|
||||
raise NotImplementedError, "You should implement this method"
|
||||
|
@ -22,7 +25,5 @@ module FileStoreClean
|
|||
def later_destroy_files_from_file_store(args)
|
||||
destroy_files_from_file_store(args)
|
||||
end
|
||||
later :later_destroy_files_from_file_store, queue: :middle
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue