Refactor app in to its own slice
This commit is contained in:
15
slices/main/views/trips/index.rb
Normal file
15
slices/main/views/trips/index.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
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
|
Reference in New Issue
Block a user