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

Fix static analysys

parent ae76f0c3
......@@ -23,7 +23,7 @@ module FastDestroyAll
before_destroy do
raise ForbiddenActionError, '`destroy` is forbbiden, please use `fast_destroy_all`'
end
end
end
class_methods do
......@@ -79,7 +79,7 @@ module FastDestroyAll
# e.g. use_fast_destroy :build_trace_chunks
def use_fast_destroy(relation)
before_destroy do
subject = public_send(relation)
subject = public_send(relation) # rubocop:disable GitlabSecurity/PublicSend
after_commit_proc = subject.after_commit_cleanup_proc
run_after_commit(&after_commit_proc)
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