summaryrefslogtreecommitdiff
path: root/app/controllers/admin
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2016-10-06 23:01:42 +0100
committerNick Thomas <nick@gitlab.com>2016-10-07 02:54:26 +0100
commit9920551536bb4f78dffeaaf3a194b92f54c34a47 (patch)
treedad5b2d5f1b725e66d29d355c5095b6899546427 /app/controllers/admin
parentdd159a750b294ee89cb8a4143284ff9788b639fc (diff)
downloadgitlab-ce-9920551536bb4f78dffeaaf3a194b92f54c34a47.tar.gz
Enable CacheMarkdownField for the remaining models
This commit alters views for the following models to use the markdown cache if present: * AbuseReport * Appearance * ApplicationSetting * BroadcastMessage * Group * Issue * Label * MergeRequest * Milestone * Project At the same time, calls to `escape_once` have been moved into the `single_line` Banzai pipeline, so they can't be missed out by accident and the work is done at save, rather than render, time.
Diffstat (limited to 'app/controllers/admin')
-rw-r--r--app/controllers/admin/broadcast_messages_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/broadcast_messages_controller.rb b/app/controllers/admin/broadcast_messages_controller.rb
index 82055006ac0..762e36ee2e9 100644
--- a/app/controllers/admin/broadcast_messages_controller.rb
+++ b/app/controllers/admin/broadcast_messages_controller.rb
@@ -37,7 +37,7 @@ class Admin::BroadcastMessagesController < Admin::ApplicationController
end
def preview
- @message = broadcast_message_params[:message]
+ @broadcast_message = BroadcastMessage.new(broadcast_message_params)
end
protected