16 lines
296 B
Ruby
16 lines
296 B
Ruby
module Main
|
|
module Views
|
|
module Photos
|
|
class Index < Main::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
|