]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/messages_controller.rb
DataLayer to consume JSON format responses
[rails.git] / app / controllers / messages_controller.rb
index 5a63dfd6e018f8179bf3028a28f800c516ceb236..1979c9edc5f7bf8feba00f9901150af9420c4038 100644 (file)
@@ -73,23 +73,6 @@ class MessagesController < ApplicationController
     render :action => "no_such_message", :status => :not_found
   end
 
-  # Moves message into Inbox by unsetting the muted-flag
-  def unmute
-    message = current_user.muted_messages.find(params[:message_id])
-
-    if message.unmute
-      flash[:notice] = t(".notice")
-    else
-      flash[:error] = t(".error")
-    end
-
-    if current_user.muted_messages.none?
-      redirect_to messages_inbox_path
-    else
-      redirect_to messages_muted_inbox_path
-    end
-  end
-
   private
 
   ##