app/controllers/commontator/threads_controller.rb~ in commontator-0.5.12 vs app/controllers/commontator/threads_controller.rb~ in commontator-0.5.13
- old
+ new
@@ -3,11 +3,11 @@
before_filter :get_thread
before_filter :get_commontable_url, :only => :show
# GET /threads/1
def show
- commontator_thread_show(@thread.commontable, @user)
+ commontator_thread_show(@thread.commontable)
respond_to do |format|
format.html { redirect_to @commontable_url }
format.js
end
@@ -20,9 +20,10 @@
@thread.close(@user)
@thread.thread_closed_callback(@user)
respond_to do |format|
format.html { redirect_to @thread }
+ format.js { render :show }
end
end
# PUT /threads/1/reopen
def reopen