From c790f1ca41e0bc89d23f48e0f3c7df6df8408391 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 18 Jul 2012 19:10:08 +0000 Subject: [PATCH] ApplicationHelper#link_to_remote_if_authorized deprecated. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10039 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/application_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index a9dcf25b9..d90927875 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -45,6 +45,7 @@ module ApplicationHelper # Display a link to remote if user is authorized def link_to_remote_if_authorized(name, options = {}, html_options = nil) + ActiveSupport::Deprecation.warn "ApplicationHelper#link_to_remote_if_authorized is deprecated and will be removed in Redmine 2.2." url = options[:url] || {} link_to_remote(name, options, html_options) if authorize_for(url[:controller] || params[:controller], url[:action]) end