Files
adamantium/app/views/places/map_page.rb

19 lines
373 B
Ruby

module Adamantium
module Views
module Places
class MapPage < Adamantium::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