Files
adamantium/slices/main/views/trips/index.rb
2024-02-21 21:48:44 +11:00

16 lines
278 B
Ruby

module Main
module Views
module Trips
class Index < Main::View
include Deps["repos.trip_repo"]
expose :trip_years do
trip_repo
.list
.group_by { |trip| trip.start_date.year }
end
end
end
end
end