diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2019-10-17 16:15:07 +1100 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2019-10-23 11:29:14 +1100 |
commit | 920c7a4abe28dac1d1b26098ece2d912c01d9584 (patch) | |
tree | b920b2f8a8d074fb9a33264e26910991c9918246 /app/models/project.rb | |
parent | 0df265b6600c12fb6ed3d068e92e8e2b3ddf0dab (diff) | |
download | gitlab-ce-920c7a4abe28dac1d1b26098ece2d912c01d9584.tar.gz |
Add #to_ability_name to Project & Milestone
This will be used later for search filtering.
Diffstat (limited to 'app/models/project.rb')
-rw-r--r-- | app/models/project.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 9c157b344e8..baf69e6bd00 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -1264,6 +1264,10 @@ class Project < ApplicationRecord end end + def to_ability_name + model_name.singular + end + # rubocop: disable CodeReuse/ServiceClass def execute_hooks(data, hooks_scope = :push_hooks) run_after_commit_or_now do |