From d8f8dc826bfbf3ebdcf5ee3094e49ac53df1d6a6 Mon Sep 17 00:00:00 2001 From: rgarcia Date: Sun, 6 Sep 2015 14:22:46 +0200 Subject: [PATCH] updates comment form cache --- app/views/comments/_form.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/comments/_form.html.erb b/app/views/comments/_form.html.erb index eb2507136..c39973da7 100644 --- a/app/views/comments/_form.html.erb +++ b/app/views/comments/_form.html.erb @@ -1,5 +1,5 @@ -<% css_id = parent_or_commentable_dom_id(parent_id, commentable) %> -<% cache [locale_and_user_status, css_id] do %> +<% cache [locale_and_user_status, parent_id, commentable] do %> + <% css_id = parent_or_commentable_dom_id(parent_id, commentable) %>
> <%= form_for [commentable, Comment.new], remote: true do |f| %> <%= label_tag "comment-body-#{css_id}", t("comments.form.leave_comment") %>