ApplicationHelper#link_to_remote_if_authorized deprecated.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10039 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-07-18 19:10:08 +00:00
parent d4f7b4af6d
commit c790f1ca41
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@ module ApplicationHelper
# Display a link to remote if user is authorized # Display a link to remote if user is authorized
def link_to_remote_if_authorized(name, options = {}, html_options = nil) 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] || {} url = options[:url] || {}
link_to_remote(name, options, html_options) if authorize_for(url[:controller] || params[:controller], url[:action]) link_to_remote(name, options, html_options) if authorize_for(url[:controller] || params[:controller], url[:action])
end end