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