remove unused mk_permission functions
This commit is contained in:
parent
e0d7f2b133
commit
8a3b4983d4
2 changed files with 6 additions and 13 deletions
|
@ -38,10 +38,6 @@ class Map < ApplicationRecord
|
||||||
topicmappings.or(synapsemappings)
|
topicmappings.or(synapsemappings)
|
||||||
end
|
end
|
||||||
|
|
||||||
def mk_permission
|
|
||||||
Perm.short(permission)
|
|
||||||
end
|
|
||||||
|
|
||||||
def contributors
|
def contributors
|
||||||
User.where(id: mappings.map(&:user_id).uniq)
|
User.where(id: mappings.map(&:user_id).uniq)
|
||||||
end
|
end
|
||||||
|
|
|
@ -125,11 +125,8 @@ class Topic < ApplicationRecord
|
||||||
"Get: #{name}"
|
"Get: #{name}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def mk_permission
|
|
||||||
Perm.short(permission)
|
|
||||||
end
|
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
|
||||||
def create_metamap?
|
def create_metamap?
|
||||||
if link == '' and metacode.name == 'Metamap'
|
if link == '' and metacode.name == 'Metamap'
|
||||||
@map = Map.create({ name: name, permission: permission, desc: '', arranged: true, user_id: user_id })
|
@map = Map.create({ name: name, permission: permission, desc: '', arranged: true, user_id: user_id })
|
||||||
|
|
Loading…
Add table
Reference in a new issue