Answer legislation questions

This commit is contained in:
Amaia Castro
2016-12-27 19:49:03 +01:00
parent 5e01b380cd
commit a6ceab6d73
13 changed files with 136 additions and 21 deletions

View File

@@ -8,5 +8,6 @@ class Legislation::QuestionsController < Legislation::BaseController
@commentable = @question
@comment_tree = CommentTree.new(@commentable, params[:page], @current_order)
set_comment_flags(@comment_tree.comments)
@answer = @question.answer_for_user(current_user) || Legislation::Answer.new
end
end