Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @survey_array = Array.new
- @all_surveys = $r2.smembers("surveys")
- for @survey_id in @all_surveys
- @survey = JSON.decode($r2.get("survey:#{@survey_id}"))
- @survey_array << @survey
- end
- "#{@survey_array}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement