Fix comment posting.

This commit is contained in:
Pete Higgins 2012-01-24 14:42:54 -08:00
parent b1e4fd0094
commit 3abf537eaa
2 changed files with 25 additions and 1 deletions

View file

@ -31,7 +31,7 @@ module Refinery
end
def comment
if (@comment = @post.comments.create(params[comment])).valid?
if (@comment = @post.comments.create(params[:comment])).valid?
if Comment::Moderation.enabled? or @comment.ham?
begin
CommentMailer.notification(@comment, request).deliver