Deprecates unused stuff (#12909).

git-svn-id: http://svn.redmine.org/redmine/trunk@15338 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2016-04-18 18:04:23 +00:00
parent fb6b565a1e
commit db64340419
2 changed files with 4 additions and 0 deletions

View File

@@ -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') +

View File

@@ -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: <tt>acts_as_list :scope => 'todo_list_id = #{todo_list_id} AND completed = 0'</tt>
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)