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)
|
Perm.short(permission)
|
||||||
end
|
end
|
||||||
|
|
||||||
# return an array of the contributors to the map
|
|
||||||
def contributors
|
def contributors
|
||||||
contributors = []
|
mappings.map(&:user).uniq
|
||||||
|
|
||||||
mappings.each do |m|
|
|
||||||
contributors.push(m.user) unless contributors.include?(m.user)
|
|
||||||
end
|
|
||||||
|
|
||||||
contributors
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def editors
|
def editors
|
||||||
|
|
Loading…
Add table
Reference in a new issue