From 8298a07fd9b7c8ed3d1cdf53f58e3988606672a3 Mon Sep 17 00:00:00 2001 From: Vipul A M Date: Fri, 14 Jun 2013 11:08:59 +0530 Subject: [PATCH] `toggle_mute` doesn't require a param --- app/controllers/topics_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/topics_controller.rb b/app/controllers/topics_controller.rb index c51774fe187..318cbf3a4d7 100644 --- a/app/controllers/topics_controller.rb +++ b/app/controllers/topics_controller.rb @@ -108,11 +108,11 @@ class TopicsController < ApplicationController end def mute - toggle_mute(true) + toggle_mute end def unmute - toggle_mute(false) + toggle_mute end def autoclose @@ -211,7 +211,7 @@ class TopicsController < ApplicationController private - def toggle_mute(v) + def toggle_mute @topic = Topic.where(id: params[:topic_id].to_i).first guardian.ensure_can_see!(@topic)