From db64340419eceec5966ffc910daf38cf35506fd3 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 18 Apr 2016 18:04:23 +0000 Subject: [PATCH] Deprecates unused stuff (#12909). git-svn-id: http://svn.redmine.org/redmine/trunk@15338 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/application_helper.rb | 3 +++ lib/plugins/acts_as_list/lib/active_record/acts/list.rb | 1 + 2 files changed, 4 insertions(+) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 4d5934858..f298a15ed 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -454,6 +454,9 @@ module ApplicationHelper end def reorder_links(name, url, method = :post) + # TODO: remove associated styles from application.css too + ActiveSupport::Deprecation.warn "Application#reorder_links will be removed in Redmine 4." + link_to(l(:label_sort_highest), url.merge({"#{name}[move_to]" => 'highest'}), :method => method, :title => l(:label_sort_highest), :class => 'icon-only icon-move-top') + diff --git a/lib/plugins/acts_as_list/lib/active_record/acts/list.rb b/lib/plugins/acts_as_list/lib/active_record/acts/list.rb index f1887eed4..d0daad301 100644 --- a/lib/plugins/acts_as_list/lib/active_record/acts/list.rb +++ b/lib/plugins/acts_as_list/lib/active_record/acts/list.rb @@ -31,6 +31,7 @@ module ActiveRecord # to give it an entire string that is interpolated if you need a tighter scope than just a foreign key. # Example: acts_as_list :scope => 'todo_list_id = #{todo_list_id} AND completed = 0' def acts_as_list(options = {}) + ActiveSupport::Deprecation.warn "The acts_as_list plugin will be removed from Redmine 4 core, use the acts_as_list gem or similar implementation instead." configuration = { :column => "position", :scope => "1 = 1" } configuration.update(options) if options.is_a?(Hash)