Sha256: b0e2b3faf511256d4c31f149ed6a867a77e08e757b81e9a2a2319bb1332ced17
Contents?: true
Size: 597 Bytes
Versions: 11
Compression:
Stored size: 597 Bytes
Contents
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
11 entries across 11 versions & 1 rubygems