This commit is contained in:
Toks
2013-04-29 18:12:02 -04:00
parent 78281a9b4c
commit a957736dd5

View File

@@ -25,6 +25,7 @@ class PostsController < ApplicationController
@children_post_set = PostSets::Post.new("parent:#{@post.id} -id:#{@post.id}", 1, 200)
@parent_post_set = PostSets::Post.new("id:#{@post.parent_id} status:any")
@siblings_post_set = PostSets::Post.new("parent:#{@post.parent_id} -id:#{@post.parent_id}", 1, 200)
@siblings_post_set.posts.reverse!
respond_with(@post)
end