Files
adamantium/app/views/photos/index.rb
2023-02-25 14:11:34 +11:00

16 lines
308 B
Ruby

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