Skip to content
Snippets Groups Projects
Commit 7d119bab authored by http://jneen.net/'s avatar http://jneen.net/
Browse files

re-enable the cyclomatic complexity checker

parent 51087cfa
No related branches found
No related tags found
No related merge requests found
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)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment