make code climate happier
This commit is contained in:
parent
c8f35e6526
commit
63895723de
1 changed files with 1 additions and 8 deletions
|
@ -39,15 +39,8 @@ class Map < ApplicationRecord
|
|||
Perm.short(permission)
|
||||
end
|
||||
|
||||
# return an array of the contributors to the map
|
||||
def contributors
|
||||
contributors = []
|
||||
|
||||
mappings.each do |m|
|
||||
contributors.push(m.user) unless contributors.include?(m.user)
|
||||
end
|
||||
|
||||
contributors
|
||||
mappings.map(&:user).uniq
|
||||
end
|
||||
|
||||
def editors
|
||||
|
|
Loading…
Add table
Reference in a new issue