mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 19:51:01 +08:00
15 lines
306 B
Ruby
15 lines
306 B
Ruby
|
module ProjectsHelper
|
||
|
|
||
|
def user_project_role_to_s(user_project)
|
||
|
t("user_projects.enums.role." + user_project.role)
|
||
|
end
|
||
|
|
||
|
def construct_module_connections(my_module)
|
||
|
conns = Array.new
|
||
|
my_module.outputs.each do |output|
|
||
|
conns.push(output.to.id)
|
||
|
end
|
||
|
conns.to_s[1..-2]
|
||
|
end
|
||
|
end
|