fixes #553
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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}" %> <label for="comment_do_not_bump_post_<%= post.id %>">No bump</label>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user