diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-05-02 21:30:39 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-05-02 21:30:39 +0900 |
commit | 2fde2d6524809e2083078626b9b43a4c11313fae (patch) | |
tree | 5e78aed109c7ae8578dc51ce00c9488750577a13 /app/models | |
parent | ae76f0c3b5d9978153d335434fffeb35f2703b90 (diff) | |
download | gitlab-ce-2fde2d6524809e2083078626b9b43a4c11313fae.tar.gz |
Fix static analysys
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/concerns/fast_destroy_all.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/concerns/fast_destroy_all.rb b/app/models/concerns/fast_destroy_all.rb index 3581822673e..7639af35b69 100644 --- a/app/models/concerns/fast_destroy_all.rb +++ b/app/models/concerns/fast_destroy_all.rb @@ -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 |