summaryrefslogtreecommitdiff
path: root/app/controllers/admin
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-11-12 15:20:31 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-11-12 15:20:31 +0200
commit13a66040300241caf234726bfc72ca90ef4c34fd (patch)
tree799265bbd29218323deb09a82bf56ee50533c140 /app/controllers/admin
parentc5b667351abcda4b5ac134873007a0ce47976e88 (diff)
downloadgitlab-ce-13a66040300241caf234726bfc72ca90ef4c34fd.tar.gz
Ability to remvoe broadcast messages
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/controllers/admin')
-rw-r--r--app/controllers/admin/broadcast_messages_controller.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/controllers/admin/broadcast_messages_controller.rb b/app/controllers/admin/broadcast_messages_controller.rb
index 3ba8d09bc8c..9a70ef9d199 100644
--- a/app/controllers/admin/broadcast_messages_controller.rb
+++ b/app/controllers/admin/broadcast_messages_controller.rb
@@ -15,6 +15,15 @@ class Admin::BroadcastMessagesController < Admin::ApplicationController
end
end
+ def destroy
+ BroadcastMessage.find(params[:id]).destroy
+
+ respond_to do |format|
+ format.html { redirect_to :back }
+ format.js { render nothing: true }
+ end
+ end
+
protected
def broadcast_messages