diff options
Diffstat (limited to 'app/models/concerns/fast_destroy_all.rb')
-rw-r--r-- | app/models/concerns/fast_destroy_all.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/fast_destroy_all.rb b/app/models/concerns/fast_destroy_all.rb index 367a2df854f..7ea042c6742 100644 --- a/app/models/concerns/fast_destroy_all.rb +++ b/app/models/concerns/fast_destroy_all.rb @@ -74,7 +74,7 @@ module FastDestroyAll # This method is to be defined on models which have fast destroyable models as children, # and let us avoid to use `dependent: :destroy` hook def use_fast_destroy(relation) - before_destroy do + before_destroy(prepend: true) do perform_fast_destroy(public_send(relation)) # rubocop:disable GitlabSecurity/PublicSend end end |