From c6bf632945ddd42502f2cddce77105b062c6f296 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 1 Jun 2017 18:29:18 +0000 Subject: [PATCH] Use #skip_after_action instead of #skip_after_filter. git-svn-id: http://svn.redmine.org/redmine/trunk@16589 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/attachments_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb index 441243542..1c79ff4b3 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -25,7 +25,7 @@ class AttachmentsController < ApplicationController # Disable check for same origin requests for JS files, i.e. attachments with # MIME type text/javascript. - skip_after_filter :verify_same_origin_request, :only => :download + skip_after_action :verify_same_origin_request, :only => :download accept_api_auth :show, :download, :thumbnail, :upload, :update, :destroy -- 2.39.5