app/controllers/application_controller.rb
Showing 1 of 1 total issue
Method get_owner
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
Open
def get_owner if self.class.method_defined? :parent if parent and (parent.is_a? User or parent.is_a? Group) return parent else
- Read upRead up