mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 15:13:21 +08:00
14 lines
306 B
Ruby
14 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
|