summaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-18 19:10:08 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-18 19:10:08 +0000
commitc790f1ca41e0bc89d23f48e0f3c7df6df8408391 (patch)
tree0a5ca2bd72cbeec725c6ece01f428bceeb817742 /app/helpers
parentd4f7b4af6df8a925df2f09a71ce8a5d4c3758253 (diff)
downloadredmine-c790f1ca41e0bc89d23f48e0f3c7df6df8408391.tar.gz
redmine-c790f1ca41e0bc89d23f48e0f3c7df6df8408391.zip
ApplicationHelper#link_to_remote_if_authorized deprecated.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10039 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb1
1 files changed, 1 insertions, 0 deletions
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