app/controllers/commontator/comments_controller.rb in commontator-1.0.6 vs app/controllers/commontator/comments_controller.rb in commontator-1.1.0

- old
+ new

@@ -1,10 +1,10 @@ module Commontator class CommentsController < ApplicationController before_filter :get_thread, :only => [:new, :create] before_filter :get_comment_and_thread, :except => [:new, :create] - before_filter :get_commontable_url, :only => :create + before_filter :set_commontable_url, :only => :create # GET /1/comments/new def new @comment = Comment.new @comment.thread = @thread @@ -27,12 +27,9 @@ raise SecurityTransgression unless @comment.can_be_created_by?(@user) respond_to do |format| if @comment.save - @thread.subscribe(@user) if @thread.config.auto_subscribe_on_comment - @thread.add_unread_except_for(@user) - SubscriptionsMailer.comment_created_email(@comment, @commontable_url) format.html { redirect_to @thread } format.js else format.html { redirect_to @thread } format.js { render :new }