Add statuses
This commit is contained in:
@@ -22,6 +22,10 @@ module Adamantium
|
||||
end
|
||||
end
|
||||
|
||||
expose :latest_status do
|
||||
Decorators::Posts::Decorator.new(post_repo.latest_status)
|
||||
end
|
||||
|
||||
expose :last_location do
|
||||
Decorators::Posts::Decorator.new(post_repo.last_location)
|
||||
end
|
||||
|
15
app/views/statuses/index.rb
Normal file
15
app/views/statuses/index.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
module Adamantium
|
||||
module Views
|
||||
module Statuses
|
||||
class Index < Adamantium::View
|
||||
include Deps["repos.post_repo"]
|
||||
|
||||
expose :posts do
|
||||
post_repo.statuses_listing.map do |post|
|
||||
Decorators::Posts::Decorator.new(post)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user