Commit 63477fd2 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Disable Metrics/CyclomaticComplexity for Ability.allowed

There's little point to cut that down.
parent 59413153
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