Sha256: 53a5ecf130505d3d792252999e49208e142885a95e886e65b5256548c07018f7
Contents?: true
Size: 636 Bytes
Versions: 6
Compression:
Stored size: 636 Bytes
Contents
# frozen_string_literal: true module ThinkFeelDoEngine module Reports # Collect metadata for all Participant Thoughts. class PatientThought def self.columns %w( participant_id content created_at ) end def self.all Participant.not_moderator .select(:id, :study_id).map.map do |participant| participant.thoughts.map do |thought| { participant_id: participant.study_id, content: thought.content, created_at: thought.created_at.iso8601 } end end.flatten end end end end
Version data entries
6 entries across 6 versions & 1 rubygems