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

19 lines
361 B
Ruby

module Main
module Views
module Places
class MapPage < Main::View
include Deps["repos.post_repo"]
config.layout = "map"
expose :places do
post_repo.places_listing.map do |post|
p = Decorators::Posts::Decorator.new(post)
[p.lon, p.lat]
end
end
end
end
end
end