Skip to content
Snippets Groups Projects
Commit d039c167 authored by Jan Provaznik's avatar Jan Provaznik
Browse files

Fixed before_destroy callback

remove_file_uploads should be called both with and w/o
the flag - we need to decide which way to use on instance level.
parent 4ded0411
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -31,7 +31,7 @@ module WithUploads
 
# TODO: when feature flag is removed, we can use just dependent: destroy
# option on :file_uploads
before_destroy :remove_file_uploads, unless: :fast_destroy_enabled?
before_destroy :remove_file_uploads
 
use_fast_destroy :file_uploads, if: :fast_destroy_enabled?
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment