Commit 7d119bab authored by http://jneen.net/'s avatar http://jneen.net/

re-enable the cyclomatic complexity checker

parent 51087cfa
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment