From c49eddf2df37ca1ebe8a833d9cb1c2d2dbc3b33c Mon Sep 17 00:00:00 2001 From: albert Date: Sat, 23 Feb 2013 13:07:01 -0500 Subject: [PATCH] fixes #553 --- app/models/comment.rb | 2 +- app/views/comments/partials/new/_form.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/comment.rb b/app/models/comment.rb index 3e5c70273..67312064a 100644 --- a/app/models/comment.rb +++ b/app/models/comment.rb @@ -6,7 +6,7 @@ class Comment < ActiveRecord::Base has_many :votes, :class_name => "CommentVote", :dependent => :destroy before_validation :initialize_creator, :on => :create after_save :update_last_commented_at - attr_accessible :body, :post_id + attr_accessible :body, :post_id, :do_not_bump_post attr_accessor :do_not_bump_post module SearchMethods diff --git a/app/views/comments/partials/new/_form.html.erb b/app/views/comments/partials/new/_form.html.erb index 8f5b036af..8202ad51f 100644 --- a/app/views/comments/partials/new/_form.html.erb +++ b/app/views/comments/partials/new/_form.html.erb @@ -4,6 +4,6 @@ <%= form_tag(comments_path, :class => "simple_form") do %> <%= hidden_field "comment", "post_id", :value => post.id %> <%= dtext_field "comment", "body", :input_id => "comment_response_for_#{post.id}", :preview_id => "dtext-preview-for-#{post.id}" %> - <%= submit_tag "Post" %> <%= dtext_preview_button "comment", "body", :input_id => "comment_response_for_#{post.id}", :preview_id => "dtext-preview-for-#{post.id}" %> + <%= submit_tag "Post" %> <%= check_box "comment", "do_not_bump_post", :id => "comment_do_not_bump_post_#{post.id}" %> <% end %>