]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/messages_controller.rb
Switch to using rails builtin content security policy support
[rails.git] / app / controllers / messages_controller.rb
index adfbd9157992537c18c35b35beb1c67513dbef03..779174e255ffc915fe14f44c67e2710b8cb87cba 100644 (file)
@@ -11,7 +11,8 @@ class MessagesController < ApplicationController
   before_action :lookup_user, :only => [:new, :create]
   before_action :check_database_readable
   before_action :check_database_writable, :only => [:new, :create, :reply, :mark, :destroy]
-  before_action :allow_thirdparty_images, :only => [:new, :create, :show]
+
+  allow_thirdparty_images :only => [:new, :create, :show]
 
   # Show a message
   def show