From db64340419eceec5966ffc910daf38cf35506fd3 2016-04-18 18:04:23 From: Jean-Philippe Lang Date: 2016-04-18 18:04:23 Subject: [PATCH] Deprecates unused stuff (#12909). git-svn-id: http://svn.redmine.org/redmine/trunk@15338 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 4d59348..f298a15 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 f1887ee..d0daad3 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)