summaryrefslogtreecommitdiff
path: root/app/models/commit.rb
diff options
context:
space:
mode:
authorPeter Leitzen <pl@neopoly.de>2018-07-21 10:52:07 +0200
committerPeter Leitzen <pl@neopoly.de>2018-08-10 16:45:11 +0200
commit2022243a222583daaf9e00d44fa6d1a9d75d4b02 (patch)
tree0bfd3531713747382c07f5c9cc6c12cb5ca330aa /app/models/commit.rb
parentd23fbbc6928983582198092cf28a0cd46d30252f (diff)
downloadgitlab-ce-2022243a222583daaf9e00d44fa6d1a9d75d4b02.tar.gz
Create empty Commits::UpdateService and wire it up
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r--app/models/commit.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb
index 8b9f4490ffa..27fbdc3e386 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -448,6 +448,10 @@ class Commit
true
end
+ def to_ability_name
+ model_name.singular
+ end
+
def touch
# no-op but needs to be defined since #persisted? is defined
end