Commit 2fde2d65 authored by Shinya Maeda's avatar Shinya Maeda

Fix static analysys

parent ae76f0c3
...@@ -79,7 +79,7 @@ module FastDestroyAll ...@@ -79,7 +79,7 @@ module FastDestroyAll
# e.g. use_fast_destroy :build_trace_chunks # e.g. use_fast_destroy :build_trace_chunks
def use_fast_destroy(relation) def use_fast_destroy(relation)
before_destroy do before_destroy do
subject = public_send(relation) subject = public_send(relation) # rubocop:disable GitlabSecurity/PublicSend
after_commit_proc = subject.after_commit_cleanup_proc after_commit_proc = subject.after_commit_cleanup_proc
run_after_commit(&after_commit_proc) run_after_commit(&after_commit_proc)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment