Fixes for PostreSQL support

This commit is contained in:
Eugene Dubinin 2017-06-15 18:11:43 +03:00 committed by Stella Rouzi
parent f2c0367a74
commit 1c38b091cc
5 changed files with 39 additions and 33 deletions

View file

@ -3,7 +3,7 @@
.page-header
%h1
Missing Speakers
= "(#{@missing_event_speakers.group(:user_id).length})"
= "(#{@missing_event_speakers.distinct(:user_id).length})"
%p.text-muted
All event speakers who haven't checked in
.col-md-12

View file

@ -17,7 +17,7 @@
%a{href: '#missing-speakers', 'data-toggle' => 'tab'}
Missing Speakers
%span.label.label-danger{style: 'border-radius: 1em;'}
= @missing_event_speakers.group(:user_id).length
= @missing_event_speakers.distinct(:user_id).length
.tab-content
#all.tab-pane.active