Update trips

This commit is contained in:
2023-05-10 20:39:22 +10:00
parent c4223aab31
commit 2fce0d3967
12 changed files with 384 additions and 63 deletions

View File

@@ -4,8 +4,10 @@ module Adamantium
class Index < View
include Deps["repos.trip_repo"]
expose :trips do
trip_repo.list
expose :trip_years do
trip_repo
.list
.group_by { |trip| trip.start_date.year }
end
end
end