diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-06-30 21:38:29 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-06-30 21:38:29 +0800 |
commit | 63477fd27f3eeff5d5f612b27ed71c76926934d2 (patch) | |
tree | 030e71ce2e06f8f3444f84c7d773a0238121b233 | |
parent | 59413153f574c939ca9652d9684410a9608a93c2 (diff) | |
download | gitlab-ce-enable-shared-runners-with-admins.tar.gz |
Disable Metrics/CyclomaticComplexity for Ability.allowedenable-shared-runners-with-admins
There's little point to cut that down.
-rw-r--r-- | app/models/ability.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/ability.rb b/app/models/ability.rb index 0add2f5a34a..ba1f2ae4075 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -1,5 +1,6 @@ class Ability class << self + # rubocop: disable Metrics/CyclomaticComplexity def allowed(user, subject) return anonymous_abilities(user, subject) if user.nil? return [] unless user.is_a?(User) |