app/models/project_permission.rb
Method remove
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def remove(perm)
case perm
when 'comment' then
self.can_comment = false
when 'work' then
Method set
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def set(perm)
case perm
when 'comment' then
self.can_comment = 1
when 'work' then