mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-13 21:33:20 +01:00
Merge pull request #1205 from Retrospring/fix/pass-subscribed-answers-on-create
Pass subscribed answer IDs on answer create
This commit is contained in:
commit
603a454efd
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ class Ajax::AnswerController < AjaxController
|
|||
|
||||
# this assign is needed because shared/_answerbox relies on it, I think
|
||||
@question = 1
|
||||
@response[:render] = render_to_string(partial: "answerbox", locals: { a: answer, show_question: false })
|
||||
@response[:render] = render_to_string(partial: "answerbox", locals: { a: answer, show_question: false, subscribed_answer_ids: [answer.id] })
|
||||
end
|
||||
|
||||
def destroy
|
||||
|
|
Loading…
Reference in a new issue