diff options
author | Sean McGivern <sean@gitlab.com> | 2017-08-30 15:33:39 +0300 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2017-08-30 16:32:02 +0300 |
commit | b9d8946395ebe2b0d05e464e6a2af1181c7f1b90 (patch) | |
tree | a87957b03646fe6ac3a292a07269e3937dad574c /lib/api/tags.rb | |
parent | 07a7801c03ec6f5bccd517c38beaec426c554e11 (diff) |
Don't use public_send in destroy_conditionally! helper
As we only override in two places, we could just ask for the value rather than
the method name.
Diffstat (limited to 'lib/api/tags.rb')
-rw-r--r-- | lib/api/tags.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/tags.rb b/lib/api/tags.rb index 81b17935b81..912415e3a7f 100644 --- a/lib/api/tags.rb +++ b/lib/api/tags.rb @@ -70,7 +70,7 @@ module API commit = user_project.repository.commit(tag.dereferenced_target) - destroy_conditionally!(commit, last_update_field: :authored_date) do + destroy_conditionally!(commit, last_updated: commit.authored_date) do result = ::Tags::DestroyService.new(user_project, current_user) .execute(params[:tag_name]) |