diff options
author | Heiko Bernloehr <Heiko.Bernloehr@FreeIT.de> | 2020-06-05 11:13:14 +0200 |
---|---|---|
committer | Heiko Bernlöhr <Heiko.Bernloehr@FreeIT.de> | 2022-09-15 09:42:20 +0200 |
commit | de933624c5d06e112f558411576a5418241f5759 (patch) | |
tree | 07bd87a1fbfc81413f39f3ecb0da9512696b5599 | |
parent | a0ec2309f7fa78eb3d07f6c5b6e23eb6ebaea203 (diff) | |
download | ecs-de933624c5d06e112f558411576a5418241f5759.tar.gz ecs-de933624c5d06e112f558411576a5418241f5759.zip |
Removed doubled uniq method call.
-rw-r--r-- | app/views/admin/participants/show.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/admin/participants/show.html.haml b/app/views/admin/participants/show.html.haml index d2f8255..d230446 100644 --- a/app/views/admin/participants/show.html.haml +++ b/app/views/admin/participants/show.html.haml @@ -103,7 +103,7 @@ - if events_count < eventsm or events_count < 5 - events_first = Event.for_participant(@participant,-1).uniq -else - - events_first = Event.for_participant(@participant,-1).uniq.uniq.limit(eventsm/2) + - events_first = Event.for_participant(@participant,-1).uniq.limit(eventsm/2) - events_last = Event.for_participant(@participant,-1).uniq.limit(eventsm/2).offset(events_count-(eventsm/2)) - events_diff = events_last - events_first - unless events_first.blank? |