Sha256: 7f5693f510ecb7a5b70e8ee32f676f79d4506c406b4df7804a595aeda3bb3f10
Contents?: true
Size: 568 Bytes
Versions: 44
Compression:
Stored size: 568 Bytes
Contents
module ThinkFeelDoEngine module Reports # Scenario: a Participant logs into the site. class Login def self.columns %w( participant_id occurred_at ) end def self.all Participant.select(:id, :study_id).map do |participant| ParticipantLoginEvent .where(participant_id: participant.id).map do |event| { participant_id: participant.study_id, occurred_at: event.created_at.iso8601 } end end.flatten end end end end
Version data entries
44 entries across 44 versions & 1 rubygems