summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-04-18 18:38:03 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-04-18 18:38:03 +0000
commit39ff11ba06a7c72eb27519b3e918969f43596573 (patch)
tree83f9e45b53d50c245b35e6dccd867f61e9e906c4 /lib
parentdb64340419eceec5966ffc910daf38cf35506fd3 (diff)
downloadredmine-39ff11ba06a7c72eb27519b3e918969f43596573.tar.gz
redmine-39ff11ba06a7c72eb27519b3e918969f43596573.zip
Removes #move_to= (#12909).
git-svn-id: http://svn.redmine.org/redmine/trunk@15339 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/acts/positioned.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/redmine/acts/positioned.rb b/lib/redmine/acts/positioned.rb
index a322f1346..75041fe38 100644
--- a/lib/redmine/acts/positioned.rb
+++ b/lib/redmine/acts/positioned.rb
@@ -47,22 +47,6 @@ module Redmine
base.extend ClassMethods
end
- # Move to the given position
- # For compatibility with the previous way of sorting items
- def move_to=(pos)
- case pos.to_s
- when 'highest'
- self.position = 1
- when 'higher'
- self.position -= 1 if position > 1
- when 'lower'
- self.position += 1
- when 'lowest'
- self.position = nil
- set_default_position
- end
- end
-
private
def position_scope