Archive: ComponentOwl Rails app, DB backups, go redirect script

This commit is contained in:
EC2 Default User
2026-03-23 16:20:05 +00:00
commit 50037f386f
218 changed files with 14558 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
module NotifierHelper
def survey(survey)
keys = survey.keys.sort {|x, y| x.to_i <=> y.to_i }
questions = []
keys.each do |key|
item = survey[key]
str = "#{key}. #{item[:question]}\n"
if item[:answer].is_a? Array
str += item[:answer].join(", ")
else
str += item[:answer] || ""
end
questions << str
end
questions.join("\n\n")
end
end