Files
adamantium/app/views/posts/index.rb
2023-01-27 22:55:09 +11:00

16 lines
305 B
Ruby

module Adamantium
module Views
module Posts
class Index < Adamantium::View
include Deps["repos.post_repo"]
expose :posts do
post_repo.post_listing.map do |post|
Decorators::Posts::Decorator.new(post)
end
end
end
end
end
end