diff options
author | Ruben Davila <rdavila84@gmail.com> | 2016-11-18 21:19:04 -0500 |
---|---|---|
committer | Ruben Davila <rdavila84@gmail.com> | 2016-11-18 21:19:04 -0500 |
commit | 452d1d0824f44664484c35a2acc7c008c8167196 (patch) | |
tree | 4fc0203967136f3a3f1d93fd42ae565f3afffc0a /app/controllers/concerns/issuable_actions.rb | |
parent | aea8baed3093c513560e9ac5ac0c5c99508d3001 (diff) | |
download | gitlab-ce-452d1d0824f44664484c35a2acc7c008c8167196.tar.gz |
Backport some changes done from Time Tracking feature in EE.ee-870-backport
Diffstat (limited to 'app/controllers/concerns/issuable_actions.rb')
-rw-r--r-- | app/controllers/concerns/issuable_actions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/concerns/issuable_actions.rb b/app/controllers/concerns/issuable_actions.rb index be86fa106f8..0821974aa93 100644 --- a/app/controllers/concerns/issuable_actions.rb +++ b/app/controllers/concerns/issuable_actions.rb @@ -12,7 +12,7 @@ module IssuableActions destroy_method = "destroy_#{issuable.class.name.underscore}".to_sym TodoService.new.public_send(destroy_method, issuable, current_user) - name = issuable.class.name.titleize.downcase + name = issuable.human_class_name flash[:notice] = "The #{name} was successfully deleted." redirect_to polymorphic_path([@project.namespace.becomes(Namespace), @project, issuable.class]) end |