scinote-web/app/helpers/projects_helper.rb
2016-02-12 16:52:43 +01:00

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