Files
adamantium/app/views/trips/index.rb
2023-05-10 20:39:22 +10:00

16 lines
278 B
Ruby

module Adamantium
module Views
module Trips
class Index < 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