diff options
author | http://jneen.net/ <jneen@jneen.net> | 2016-08-09 13:56:54 -0700 |
---|---|---|
committer | http://jneen.net/ <jneen@jneen.net> | 2016-08-30 11:32:55 -0700 |
commit | 7d119bab4816355ce0156f24e0117e6e1d81588f (patch) | |
tree | 545be50f56f2dae77eb9d4c68b0c161aad7aa2d1 | |
parent | 51087cfa1a6b0bb5a7abf35081ed3b669253eb4f (diff) | |
download | gitlab-ce-7d119bab4816355ce0156f24e0117e6e1d81588f.tar.gz |
re-enable the cyclomatic complexity checker
-rw-r--r-- | app/models/ability.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/app/models/ability.rb b/app/models/ability.rb index c1df4a865f6..fcd7740d79f 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -1,6 +1,5 @@ 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) |