]> source.dussan.org Git - redmine.git/commitdiff
ApplicationHelper#link_to_remote_if_authorized deprecated.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 18 Jul 2012 19:10:08 +0000 (19:10 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 18 Jul 2012 19:10:08 +0000 (19:10 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10039 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb

index a9dcf25b981ac6ced15197dcc08e549f88cba120..d9092787509c8527494bff9074a31b0f5bbdddbe 100644 (file)
@@ -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